MemAccInt: Do not strip pointer casts
authorTobias Grosser <tobias@grosser.es>
Tue, 15 Mar 2016 06:35:08 +0000 (06:35 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 15 Mar 2016 06:35:08 +0000 (06:35 +0000)
This mirrors:

commit  https://llvm.org/svn/llvm-project/llvm/trunk@263462
Author: Michael Kuperstein <michael.kuperstein@gmail.com>
Date:   Mon Mar 14 18:34:29 2016 +0000

    [AliasSetTracker] Do not strip pointer casts when processing MemSetInst

and fixes the failure the above commit triggered in Polly.

llvm-svn: 263538

polly/include/polly/Support/ScopHelper.h

index 7cd23c8..b1657f6 100644 (file)
@@ -178,7 +178,7 @@ public:
     if (isStore())
       return asStore()->getPointerOperand();
     if (isMemIntrinsic())
-      return asMemIntrinsic()->getDest();
+      return asMemIntrinsic()->getRawDest();
     if (isCallInst())
       return nullptr;
     llvm_unreachable("Operation not supported on nullptr");