aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-08-21 18:54:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-08-21 18:54:23 +0000
commit79c78de3785a24cb6994038f0e8df92bded548e6 (patch)
treeb4cce561cd8cad17a17a588ff1b2c51e6343ff1c
parent74169b293f2fc8767db3c659fde6b001b7d5075f (diff)
downloadexternal_llvm-79c78de3785a24cb6994038f0e8df92bded548e6.zip
external_llvm-79c78de3785a24cb6994038f0e8df92bded548e6.tar.gz
external_llvm-79c78de3785a24cb6994038f0e8df92bded548e6.tar.bz2
Remove unnecessary cast that was also unnecessarily casting away constness.
Even looking at the revision history I couldn't quite piece together why this cast was ever written in the first place, but I assume it was because of some change in the inheritance, perhaps this function was reimplemented in a derived type & this caller was meant to get the base version (& it wasn't virtual)? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162301 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--foo0
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/foo b/foo
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/foo
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 6ac5428..d0cff48 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -1747,7 +1747,7 @@ unsigned RAGreedy::selectOrSplit(LiveInterval &VirtReg,
bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
DEBUG(dbgs() << "********** GREEDY REGISTER ALLOCATION **********\n"
<< "********** Function: "
- << ((Value*)mf.getFunction())->getName() << '\n');
+ << mf.getFunction()->getName() << '\n');
MF = &mf;
if (VerifyEnabled)