diff options
author | Johannes Doerfert <jdoerfert@codeaurora.org> | 2014-07-29 08:36:18 +0000 |
---|---|---|
committer | Johannes Doerfert <jdoerfert@codeaurora.org> | 2014-07-29 08:36:18 +0000 |
commit | d9e1dbd3765ad465b53d669d77223e0ccfcfa47b (patch) | |
tree | 7b5aad702b584a8e0f6bcec57de414f5aa133775 /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | a87e3e49ce9cf76a55b0daa4d5869d1f58064f95 (diff) | |
download | bcm5719-llvm-d9e1dbd3765ad465b53d669d77223e0ccfcfa47b.tar.gz bcm5719-llvm-d9e1dbd3765ad465b53d669d77223e0ccfcfa47b.zip |
[Refactor] Use non-const MemoryAccess base addresses
llvm-svn: 214168
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 56b2ab34af3..6b619272214 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -667,7 +667,7 @@ SetVector<Value *> ClastStmtCodeGen::getGPUValues(unsigned &OutputBytes) { // Record the memory reference base addresses. for (ScopStmt *Stmt : *S) { for (MemoryAccess *MA : *Stmt) { - Value *BaseAddr = const_cast<Value *>(MA->getBaseAddr()); + Value *BaseAddr = MA->getBaseAddr(); Values.insert((BaseAddr)); // FIXME: we assume that there is one and only one array to be written |