forked from OSchip/llvm-project
NULL loads are only invalid in the default address space.
llvm-svn: 111972
This commit is contained in:
parent
b695c83de9
commit
a10000006e
|
@ -460,7 +460,7 @@ LVILatticeVal LVIQuery::getBlockValue(BasicBlock *BB) {
|
|||
for (Value::use_iterator UI = Val->use_begin(), UE = Val->use_end();
|
||||
UI != UE; ++UI) {
|
||||
LoadInst *L = dyn_cast<LoadInst>(*UI);
|
||||
if (L && L->getParent() == BB) {
|
||||
if (L && L->getParent() == BB && L->getPointerAddressSpace() == 0) {
|
||||
return LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue