diff options
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 3b4de3fc30..0ba5970ac5 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -184,7 +184,7 @@ public: /// isPhysRegUsed - Return true if the specified register is used in this /// function. This only works after register allocation. - bool isPhysRegUsed(unsigned Reg) { return UsedPhysRegs[Reg]; } + bool isPhysRegUsed(unsigned Reg) const { return UsedPhysRegs[Reg]; } /// changePhyRegUsed - This method allows code that runs after register /// allocation to keep the PhysRegsUsed array up-to-date. |