@@ -154,17 +154,17 @@ void ilist_alloc_traits<MachineBasicBlock>::deleteNode(MachineBasicBlock *MBB) {
154154 MBB->getParent ()->deleteMachineBasicBlock (MBB);
155155}
156156
157- static inline Align getFnStackAlignment (const TargetSubtargetInfo * STI,
158- const Function &F) {
157+ static inline Align getFnStackAlignment (const TargetSubtargetInfo & STI,
158+ const Function &F) {
159159 if (auto MA = F.getFnStackAlign ())
160160 return *MA;
161- return STI-> getFrameLowering ()->getStackAlign ();
161+ return STI. getFrameLowering ()->getStackAlign ();
162162}
163163
164164MachineFunction::MachineFunction (Function &F, const TargetMachine &Target,
165165 const TargetSubtargetInfo &STI, MCContext &Ctx,
166166 unsigned FunctionNum)
167- : F(F), Target(Target), STI(& STI), Ctx(Ctx) {
167+ : F(F), Target(Target), STI(STI), Ctx(Ctx) {
168168 FunctionNumber = FunctionNum;
169169 init ();
170170}
@@ -195,7 +195,7 @@ void MachineFunction::init() {
195195
196196 // We can realign the stack if the target supports it and the user hasn't
197197 // explicitly asked us not to.
198- bool CanRealignSP = STI-> getFrameLowering ()->isStackRealignable () &&
198+ bool CanRealignSP = STI. getFrameLowering ()->isStackRealignable () &&
199199 !F.hasFnAttribute (" no-realign-stack" );
200200 bool ForceRealignSP = F.hasFnAttribute (Attribute::StackAlignment) ||
201201 F.hasFnAttribute (" stackrealign" );
@@ -209,11 +209,11 @@ void MachineFunction::init() {
209209 FrameInfo->ensureMaxAlignment (*F.getFnStackAlign ());
210210
211211 ConstantPool = new (Allocator) MachineConstantPool (getDataLayout ());
212- Alignment = STI-> getTargetLowering ()->getMinFunctionAlignment ();
212+ Alignment = STI. getTargetLowering ()->getMinFunctionAlignment ();
213213
214214 if (!F.getAlign () && !F.hasOptSize ())
215215 Alignment = std::max (Alignment,
216- STI-> getTargetLowering ()->getPrefFunctionAlignment ());
216+ STI. getTargetLowering ()->getPrefFunctionAlignment ());
217217
218218 // -fsanitize=function and -fsanitize=kcfi instrument indirect function calls
219219 // to load a type hash before the function label. Ensure functions are aligned
0 commit comments