Skip to content

Commit 853094f

Browse files
committed
[VirtRegMap] Use TRI member variable. NFC
1 parent c10766c commit 853094f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/VirtRegMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ unsigned VirtRegMap::createSpillSlot(const TargetRegisterClass *RC) {
9999
// Set preferred alignment if we are still able to realign the stack
100100
auto &ST = MF->getSubtarget();
101101
Align CurrentAlign = ST.getFrameLowering()->getStackAlign();
102-
if (Alignment > CurrentAlign && !ST.getRegisterInfo()->canRealignStack(*MF)) {
102+
if (Alignment > CurrentAlign && !TRI->canRealignStack(*MF)) {
103103
Alignment = CurrentAlign;
104104
}
105105
int SS = MF->getFrameInfo().CreateSpillStackObject(Size, Alignment);

0 commit comments

Comments
 (0)