mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user