From: Chris Lattner Date: Sun, 9 Sep 2001 19:41:52 +0000 (+0000) Subject: I really don't like it when people break the build. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e5309304a06b5f8b7356af806141972d4df827b;p=oota-llvm.git I really don't like it when people break the build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index e67df86c036..825e4546a7e 100644 --- a/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -795,7 +795,7 @@ RecordSchedule(const BasicBlock* bb, const SchedulingManager& S) InstrSchedule::const_iterator NIend = S.isched.end(); for (InstrSchedule::const_iterator NI = S.isched.begin(); NI != NIend; ++NI) - mvec.push_back((*NI)->getMachineInstr()); + mvec.push_back(const_cast((*NI)->getMachineInstr())); } diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index e67df86c036..825e4546a7e 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -795,7 +795,7 @@ RecordSchedule(const BasicBlock* bb, const SchedulingManager& S) InstrSchedule::const_iterator NIend = S.isched.end(); for (InstrSchedule::const_iterator NI = S.isched.begin(); NI != NIend; ++NI) - mvec.push_back((*NI)->getMachineInstr()); + mvec.push_back(const_cast((*NI)->getMachineInstr())); }