Fix release build warnings about uninitialized variables.

This commit is contained in:
Mark Lacey
2016-01-23 10:54:51 -08:00
parent 28b71e18b3
commit 8b5298eb7b
5 changed files with 5 additions and 2 deletions

View File

@@ -113,9 +113,7 @@ updateSSAForUseOfInst(SILSSAUpdater &Updater,
// Find the mapped instruction.
assert(ValueMap.count(Inst) && "Expected to find value in map!");
SILValue MappedValue = ValueMap.find(Inst)->second;
auto *MappedInst = MappedValue.getDef();
assert(MappedValue);
assert(MappedInst);
// For each use of a specific result value of the instruction.
if (Inst->hasValue()) {