NULL loads are only invalid in the default address space.

llvm-svn: 111972
This commit is contained in:
Owen Anderson 2010-08-24 22:00:55 +00:00
parent b695c83de9
commit a10000006e
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}