MachineFunction: Return reference for getFrameInfo(); NFC
getFrameInfo() never returns nullptr so we should use a reference instead of a pointer. llvm-svn: 277017
This commit is contained in:
@@ -980,7 +980,7 @@ bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
|
||||
<< "********** Function: "
|
||||
<< ((const Value*)Func.getFunction())->getName() << '\n');
|
||||
MF = &Func;
|
||||
MFI = MF->getFrameInfo();
|
||||
MFI = &MF->getFrameInfo();
|
||||
Indexes = &getAnalysis<SlotIndexes>();
|
||||
SP = &getAnalysis<StackProtector>();
|
||||
BlockLiveness.clear();
|
||||
|
||||
Reference in New Issue
Block a user