diff options
author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-02-02 14:16:01 +0000 |
---|---|---|
committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-02-02 14:16:01 +0000 |
commit | 800e17a75cef51da5c9920c4ae819c589b52bd8a (patch) | |
tree | 3dbf2923df6dc97dc98946f53b3e7ae78a8a23bd | |
parent | e0de09682e118af3dc1c0874ba4a2104564e108d (diff) | |
download | bcm5719-llvm-800e17a75cef51da5c9920c4ae819c589b52bd8a.tar.gz bcm5719-llvm-800e17a75cef51da5c9920c4ae819c589b52bd8a.zip |
Add const keyword to MemoryAccess argument [NFC]
llvm-svn: 259504
-rw-r--r-- | polly/include/polly/CodeGen/BlockGenerators.h | 2 | ||||
-rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/polly/include/polly/CodeGen/BlockGenerators.h b/polly/include/polly/CodeGen/BlockGenerators.h index 8619cd9a2ed..1b5835ed58e 100644 --- a/polly/include/polly/CodeGen/BlockGenerators.h +++ b/polly/include/polly/CodeGen/BlockGenerators.h @@ -129,7 +129,7 @@ public: /// /// @returns The alloca for @p Access or a replacement value taken from /// GlobalMap. - Value *getOrCreateAlloca(MemoryAccess &Access); + Value *getOrCreateAlloca(const MemoryAccess &Access); /// @brief Return the alloca for @p Array /// diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index d25aaf8e3fe..33611e7a9ef 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -344,7 +344,7 @@ Value *BlockGenerator::getOrCreateAlloca(Value *ScalarBase, return Addr; } -Value *BlockGenerator::getOrCreateAlloca(MemoryAccess &Access) { +Value *BlockGenerator::getOrCreateAlloca(const MemoryAccess &Access) { if (Access.isPHIKind()) return getOrCreatePHIAlloca(Access.getBaseAddr()); else |