Fix a problem discovered on self host.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-11-06 19:21:48 +00:00
parent 90b9247377
commit 82114b98c9
2 changed files with 23 additions and 1 deletions

View File

@@ -267,7 +267,7 @@ ComputeValueKnownInPredecessors(Value *V, BasicBlock *BB,PredValueInfo &Result){
ConstantInt *CI = dyn_cast<ConstantInt>(V);
Result.resize(TheFirstPHI->getNumIncomingValues());
for (unsigned i = 0, e = Result.size(); i != e; ++i)
Result.push_back(std::make_pair(CI, TheFirstPHI->getIncomingBlock(i)));
Result[i] = std::make_pair(CI, TheFirstPHI->getIncomingBlock(i));
return true;
}