aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/StackColoring.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-06 15:42:13 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-06 15:42:13 +0000
commit5177b3a8c48adec2acf284fcb8e00775a705a7e2 (patch)
tree45291d64f299eb92e16b4567eb354c86b8ccec63 /lib/CodeGen/StackColoring.cpp
parent24b9f258f194c5e472bf133f9bbf5ca26ad500d3 (diff)
downloadexternal_llvm-5177b3a8c48adec2acf284fcb8e00775a705a7e2.zip
external_llvm-5177b3a8c48adec2acf284fcb8e00775a705a7e2.tar.gz
external_llvm-5177b3a8c48adec2acf284fcb8e00775a705a7e2.tar.bz2
Dont cast away const needlessly. Found by gcc48 -Wcast-qual.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackColoring.cpp')
-rw-r--r--lib/CodeGen/StackColoring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StackColoring.cpp b/lib/CodeGen/StackColoring.cpp
index cd333f2..e1fc52d 100644
--- a/lib/CodeGen/StackColoring.cpp
+++ b/lib/CodeGen/StackColoring.cpp
@@ -522,7 +522,7 @@ void StackColoring::expungeSlotMap(DenseMap<int, int> &SlotRemap,
bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
DEBUG(dbgs() << "********** Stack Coloring **********\n"
<< "********** Function: "
- << ((Value*)Func.getFunction())->getName() << '\n');
+ << ((const Value*)Func.getFunction())->getName() << '\n');
MF = &Func;
MFI = MF->getFrameInfo();
Indexes = &getAnalysis<SlotIndexes>();