OSDN Git Service

Fix PR33878: BasicAA incorrectly assumes different address spaces don't alias
authorNuno Lopes <nunoplopes@sapo.pt>
Wed, 6 Sep 2017 16:55:31 +0000 (16:55 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Wed, 6 Sep 2017 16:55:31 +0000 (16:55 +0000)
commite429f678d695c2da22c924ef7c37dc96c413e415
treeea32971e0da20fabc3b85b1af77f4eaba0c2cf0b
parent3274c0d73fedd6f3450bba65fe35fc13bf6fb659
Fix PR33878: BasicAA incorrectly assumes different address spaces don't alias
Remove code that assumed that a nullptr of address space != 0 couldnt alias with a non-null pointer. This is incorrect, since nothing can be concluded about a null pointer in an address space != 0.
This code was written before address spaces were introduced

Differential Revision: https://reviews.llvm.org/D37518

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312648 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicAliasAnalysis.cpp