mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Avoid incorrectly adding null values to the scalar map!
llvm-svn: 2085
This commit is contained in:
parent
e66e651b68
commit
62756e4208
@ -267,6 +267,7 @@ void FunctionRepBuilder::visitStoreInst(StoreInst *SI) {
|
||||
// into data structures...
|
||||
//
|
||||
if (!isa<PointerType>(SI->getOperand(0)->getType())) return;
|
||||
if (!ValueMap.count(SI->getOperand(0))) return; // Src scalar has no values!
|
||||
|
||||
const PointerValSet &SrcPVS = ValueMap[SI->getOperand(0)];
|
||||
const PointerValSet &PtrPVS = ValueMap[SI->getOperand(1)];
|
||||
|
Loading…
Reference in New Issue
Block a user