forked from OSchip/llvm-project
Add const keyword to MemoryAccess argument [NFC]
llvm-svn: 259504
This commit is contained in:
parent
e0de09682e
commit
800e17a75c
|
@ -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
|
||||
///
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue