mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
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
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user