mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
Don't use operator[] here, because it's not desirable to insert a default
value if the search fails. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6596a62076
commit
c25ad63766
@ -6127,8 +6127,11 @@ SelectionDAGBuilder::HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) {
|
||||
}
|
||||
Reg = RegOut;
|
||||
} else {
|
||||
Reg = FuncInfo.ValueMap[PHIOp];
|
||||
if (Reg == 0) {
|
||||
DenseMap<const Value *, unsigned>::iterator I =
|
||||
FuncInfo.ValueMap.find(PHIOp);
|
||||
if (I != FuncInfo.ValueMap.end())
|
||||
Reg = I->second;
|
||||
else {
|
||||
assert(isa<AllocaInst>(PHIOp) &&
|
||||
FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(PHIOp)) &&
|
||||
"Didn't codegen value into a register!??");
|
||||
|
Loading…
Reference in New Issue
Block a user