[polly] r259504 - Add const keyword to MemoryAccess argument [NFC]
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 06:16:01 PST 2016
Author: jdoerfert
Date: Tue Feb 2 08:16:01 2016
New Revision: 259504
URL: http://llvm.org/viewvc/llvm-project?rev=259504&view=rev
Log:
Add const keyword to MemoryAccess argument [NFC]
Modified:
polly/trunk/include/polly/CodeGen/BlockGenerators.h
polly/trunk/lib/CodeGen/BlockGenerators.cpp
Modified: polly/trunk/include/polly/CodeGen/BlockGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/BlockGenerators.h?rev=259504&r1=259503&r2=259504&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/BlockGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/BlockGenerators.h Tue Feb 2 08:16:01 2016
@@ -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
///
Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=259504&r1=259503&r2=259504&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Tue Feb 2 08:16:01 2016
@@ -344,7 +344,7 @@ Value *BlockGenerator::getOrCreateAlloca
return Addr;
}
-Value *BlockGenerator::getOrCreateAlloca(MemoryAccess &Access) {
+Value *BlockGenerator::getOrCreateAlloca(const MemoryAccess &Access) {
if (Access.isPHIKind())
return getOrCreatePHIAlloca(Access.getBaseAddr());
else
More information about the llvm-commits
mailing list