summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-24 22:00:55 +0000
committerOwen Anderson <resistor@mac.com>2010-08-24 22:00:55 +0000
commita10000006efceb945ae37f420a039680cb6db845 (patch)
tree436271ba86744567b19c62c7c7739ab35e9b874a
parentb695c83de9e07fe030f423ea92656ae126ec8bb1 (diff)
downloadbcm5719-llvm-a10000006efceb945ae37f420a039680cb6db845.tar.gz
bcm5719-llvm-a10000006efceb945ae37f420a039680cb6db845.zip
NULL loads are only invalid in the default address space.
llvm-svn: 111972
-rw-r--r--llvm/lib/Analysis/LazyValueInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index 88fa15a88f9..e4cd867743a 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -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));
}
}
OpenPOWER on IntegriCloud