diff options
author | Michael Kuperstein <michael.kuperstein@gmail.com> | 2016-03-14 18:34:29 +0000 |
---|---|---|
committer | Michael Kuperstein <michael.kuperstein@gmail.com> | 2016-03-14 18:34:29 +0000 |
commit | b7860fedd45a197215b5ce27ece92502f0fa4c98 (patch) | |
tree | 4ffa4347c2bfe886fe0659e7736b2b4a21386b4d /llvm/lib/Analysis | |
parent | 27c352d26d5722ec3c4ce99d98c647e09a697dc6 (diff) | |
download | bcm5719-llvm-b7860fedd45a197215b5ce27ece92502f0fa4c98.tar.gz bcm5719-llvm-b7860fedd45a197215b5ce27ece92502f0fa4c98.zip |
[AliasSetTracker] Do not strip pointer casts when processing MemSetInst
This fixes PR26843.
llvm-svn: 263462
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 97e50c6dbc3..e3a055f2d1b 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -355,7 +355,7 @@ bool AliasSetTracker::add(MemSetInst *MSI) { Len = MemoryLocation::UnknownSize; AliasSet &AS = - addPointer(MSI->getDest(), Len, AAInfo, AliasSet::ModAccess, NewPtr); + addPointer(MSI->getRawDest(), Len, AAInfo, AliasSet::ModAccess, NewPtr); if (MSI->isVolatile()) AS.setVolatile(); return NewPtr; @@ -510,7 +510,7 @@ bool AliasSetTracker::remove(MemSetInst *MSI) { else Len = MemoryLocation::UnknownSize; - AliasSet *AS = findAliasSetForPointer(MSI->getDest(), Len, AAInfo); + AliasSet *AS = findAliasSetForPointer(MSI->getRawDest(), Len, AAInfo); if (!AS) return false; remove(*AS); |