diff --git a/llvm/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/llvm/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index 874dd61876c8..f0ac384442eb 100644 --- a/llvm/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/llvm/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -163,7 +163,7 @@ public: // constructors and destructor public: // accessor functions to query chosen schedule const SchedGraphNode* getInstr (unsigned int slotNum, - CycleCount_t c) const { + CycleCount_t c) { const InstrGroup* igroup = this->getIGroup(c); return (igroup == NULL)? NULL : (*igroup)[slotNum]; }