diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-08-21 18:54:23 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-08-21 18:54:23 +0000 |
commit | 9c7226b456332f8d54df2a23e69e70b329c11273 (patch) | |
tree | c7eaf809e10e802ec52ecf06717793c23487f0d6 /llvm/lib | |
parent | a789c40380bc6f6df8152024cb98424ccbc52137 (diff) | |
download | bcm5719-llvm-9c7226b456332f8d54df2a23e69e70b329c11273.tar.gz bcm5719-llvm-9c7226b456332f8d54df2a23e69e70b329c11273.zip |
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)?
llvm-svn: 162301
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 6ac54286050..d0cff481cbf 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/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) |