From 2bc48f503a13fa85e816c017e9ed647282d156cd Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Fri, 28 Jun 2019 08:35:21 +0000 Subject: [PATCH] [AVR] Don't look for the TargetFrameLowering in the FrameLowering implementation c.f. r364349 llvm-svn: 364632 --- llvm/lib/Target/AVR/AVRFrameLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AVR/AVRFrameLowering.cpp b/llvm/lib/Target/AVR/AVRFrameLowering.cpp index b1b1fd1..5e91bb8 100644 --- a/llvm/lib/Target/AVR/AVRFrameLowering.cpp +++ b/llvm/lib/Target/AVR/AVRFrameLowering.cpp @@ -380,7 +380,7 @@ MachineBasicBlock::iterator AVRFrameLowering::eliminateCallFramePseudoInstr( // For adjcallstackdown we convert it into an 'adiw reg, ' handling // the read and write of SP in I/O space. if (Amount != 0) { - assert(TFI.getStackAlignment() == 1 && "Unsupported stack alignment"); + assert(getStackAlignment() == 1 && "Unsupported stack alignment"); if (Opcode == TII.getCallFrameSetupOpcode()) { fixStackStores(MBB, MI, TII, true); -- 2.7.4