aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-06 19:21:48 +0000
committerChris Lattner <sabre@nondot.org>2009-11-06 19:21:48 +0000
commit82114b98c9da043d97a39a07255518dbc00ba522 (patch)
treeea065255efb1a106d136d2cb3d8c0948fc0dbf1e /lib/Transforms
parent90b924737750732fca2bd033b1315fd81891a14b (diff)
Fix a problem discovered on self host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/JumpThreading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp
index f52110f885..4918b73c5f 100644
--- a/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/lib/Transforms/Scalar/JumpThreading.cpp
@@ -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;
}