diff options
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 |