aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2005-03-21 06:07:43 +0000
committerTanya Lattner <tonic@nondot.org>2005-03-21 06:07:43 +0000
commiteba4604d494964ec4406fe814a37f70f4c334dcd (patch)
treeb30002b406717f81932b1c38b9677e363768db33
parentd57e55ec0dcf0974857e9c1823e84c2777dd82d7 (diff)
Make this method non-const. Making it const causes the const version of
getIGroup to be called instead of the non-const one. These two methods have (??) different behavior, so this change fixes bugs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20724 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/InstrSched/InstrScheduling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
index 874dd61876..f0ac384442 100644
--- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
+++ b/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];
}