summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita8b9ce3f07adef2ca533485177b1bce716783573 (patch)
tree84f788793436f2b96b4a1522c7e3bdd5dc0b3089 /llvm/lib/Transforms
parent443f6773029a45a705ae2873fb620904289513dd (diff)
downloadbcm5719-llvm-a8b9ce3f07adef2ca533485177b1bce716783573.tar.gz
bcm5719-llvm-a8b9ce3f07adef2ca533485177b1bce716783573.zip
Fix a problem discovered on self host.
llvm-svn: 86278
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index f52110f8851..4918b73c5fd 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud