diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h index 465776b0158..383e9ca9693 100644 --- a/include/llvm/Target/MachineInstrInfo.h +++ b/include/llvm/Target/MachineInstrInfo.h @@ -176,7 +176,8 @@ public: // delete this later ******* - bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); } + bool isPhi(const MachineOpCode opCode) const + { return isDummyPhiInstr(opCode); } // Check if an instruction can be issued before its operands are ready, diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 465776b0158..383e9ca9693 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -176,7 +176,8 @@ public: // delete this later ******* - bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); } + bool isPhi(const MachineOpCode opCode) const + { return isDummyPhiInstr(opCode); } // Check if an instruction can be issued before its operands are ready,