Add const keyword to MemoryAccess argument [NFC]

llvm-svn: 259504
This commit is contained in:
Johannes Doerfert 2016-02-02 14:16:01 +00:00
parent e0de09682e
commit 800e17a75c
2 changed files with 2 additions and 2 deletions

View File

@ -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
///

View File

@ -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