diff options
author | Owen Anderson <resistor@mac.com> | 2010-08-24 22:00:55 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-08-24 22:00:55 +0000 |
commit | 7bef92ac7ad4da315fab3aca017175e856cb4702 (patch) | |
tree | 5564ea5dd1690172e7ae4bbf996a9f42a5ead0d9 /lib/Analysis/LazyValueInfo.cpp | |
parent | dae90c6afb5f625244c5bb3962669bd1f8a3d5be (diff) | |
download | external_llvm-7bef92ac7ad4da315fab3aca017175e856cb4702.zip external_llvm-7bef92ac7ad4da315fab3aca017175e856cb4702.tar.gz external_llvm-7bef92ac7ad4da315fab3aca017175e856cb4702.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
Diffstat (limited to 'lib/Analysis/LazyValueInfo.cpp')
-rw-r--r-- | lib/Analysis/LazyValueInfo.cpp | 2 |
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)); } } |