Skip to content

Commit 2d9af3d

Browse files
committed
[GlobalISel] Make GLoadStore::getMemSize[InBits]() const.
1 parent 4b8806d commit 2d9af3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class GLoadStore : public GenericMachineInstr {
5757
bool isUnordered() const { return getMMO().isUnordered(); }
5858

5959
/// Returns the size in bytes of the memory access.
60-
uint64_t getMemSize() { return getMMO().getSize();
60+
uint64_t getMemSize() const { return getMMO().getSize();
6161
} /// Returns the size in bits of the memory access.
62-
uint64_t getMemSizeInBits() { return getMMO().getSizeInBits(); }
62+
uint64_t getMemSizeInBits() const { return getMMO().getSizeInBits(); }
6363

6464
static bool classof(const MachineInstr *MI) {
6565
switch (MI->getOpcode()) {

0 commit comments

Comments
 (0)