aboutsummaryrefslogtreecommitdiffstats
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
commit2fe702c02485dec09a684a69a2fe3b088246c19b (patch)
tree5564ea5dd1690172e7ae4bbf996a9f42a5ead0d9
parent47182f8b52c74183f00c4f506bcaa41132f94e91 (diff)
downloadexternal_llvm-2fe702c02485dec09a684a69a2fe3b088246c19b.zip
external_llvm-2fe702c02485dec09a684a69a2fe3b088246c19b.tar.gz
external_llvm-2fe702c02485dec09a684a69a2fe3b088246c19b.tar.bz2
NULL loads are only invalid in the default address space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111972 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/LazyValueInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp
index 88fa15a..e4cd867 100644
--- a/lib/Analysis/LazyValueInfo.cpp
+++ b/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));
}
}