diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-06 15:42:13 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-06 15:42:13 +0000 |
commit | 5177b3a8c48adec2acf284fcb8e00775a705a7e2 (patch) | |
tree | 45291d64f299eb92e16b4567eb354c86b8ccec63 /lib/CodeGen/StackColoring.cpp | |
parent | 24b9f258f194c5e472bf133f9bbf5ca26ad500d3 (diff) |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StackColoring.cpp b/lib/CodeGen/StackColoring.cpp index cd333f2f9f..e1fc52d662 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>(); |