[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Apr 9 13:06:06 PDT 2004


Changes in directory reopt/lib/LightWtProfiling:

UnpackTraceFunction.cpp updated: 1.53 -> 1.54

---
Log message:

The const_cast is not necessary here


---
Diffs of the changes:  (+1 -1)

Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.53 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.54
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.53	Fri Apr  9 13:03:24 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Fri Apr  9 13:04:29 2004
@@ -433,7 +433,7 @@
   // Let ReturnAddress be the address in memory of the compiled
   // code for the MachineBasicBlock in MatrixF that RI would have
   // returned to. Find it by using MappingInfo.
-  BasicBlock *RBB = const_cast<BasicBlock *> (MBB.getBasicBlock ());
+  const BasicBlock *RBB = MBB.getBasicBlock ();
   assert ((TF->ReturnBlockForTraceExit.find (RBB) !=
 		   TF->ReturnBlockForTraceExit.end ())
 		  && "Can't find matrix fn BB address to return to from trace");





More information about the llvm-commits mailing list