diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-26 23:29:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-26 23:29:51 +0000 |
commit | 8d3f8e226d6cac7882e9ffe7482602a7521400c3 (patch) | |
tree | 166d00aff90702e0a627370af088c951888c2e12 /lib/Target/SparcV9/RegAlloc | |
parent | 9e2dd8f8d7c995721584d8c7add309e5d9cb1051 (diff) | |
download | external_llvm-8d3f8e226d6cac7882e9ffe7482602a7521400c3.zip external_llvm-8d3f8e226d6cac7882e9ffe7482602a7521400c3.tar.gz external_llvm-8d3f8e226d6cac7882e9ffe7482602a7521400c3.tar.bz2 |
Making this code const-correct would be a pain, so I'll hack it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/RegAlloc')
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index f08e21f..4d68b15 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -569,7 +569,7 @@ void PhyRegAlloc::updateMachineCode() // for (MachineBasicBlock::iterator MII = MBB.begin(); MII != MBB.end(); ++MII) if (!TM.getInstrInfo().isDummyPhiInstr((*MII)->getOpCode()))// ignore Phis - updateInstruction(*MII, MBB.getBasicBlock()); + updateInstruction(*MII, const_cast<BasicBlock*>(MBB.getBasicBlock())); // Now, move code out of delay slots of branches and returns if needed. // (Also, move "after" code from calls to the last delay slot instruction.) |