From 8c8e0a684b418f1db27e461ce0de1bf42175ef96 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 4 Mar 2016 23:02:15 +0000 Subject: [PATCH] Fix build breakage git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262756 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ExpandPseudo.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Target/X86/X86ExpandPseudo.cpp b/lib/Target/X86/X86ExpandPseudo.cpp index 6093c33a144e..2af2be621ff5 100644 --- a/lib/Target/X86/X86ExpandPseudo.cpp +++ b/lib/Target/X86/X86ExpandPseudo.cpp @@ -164,13 +164,14 @@ bool X86ExpandPseudo::ExpandMI(MachineBasicBlock &MBB, TII->get(STI->is64Bit() ? X86::RETIQ : X86::RETIL)) .addImm(StackAdj); } else { - assert(!Is64Bit && "shouldn't need to do this for x86_64 targets!"); + assert(!STI->is64Bit() && + "shouldn't need to do this for x86_64 targets!"); // A ret can only handle immediates as big as 2**16-1. If we need to pop // off bytes before the return address, we must do it manually. - BuildMI(MBB, MBBI, DL, X86::POP32r).addReg(X86::ECX, RegState::Define); + BuildMI(MBB, MBBI, DL, TII->get(X86::POP32r)).addReg(X86::ECX, RegState::Define); X86FL->emitSPUpdate(MBB, MBBI, StackAdj, /*InEpilogue=*/true); - BuildMI(MBB, MBBI, DL, X86::PUSH32r).addReg(X86::ECX); - MIB = BuildMI(MBB, MBBI, DL, X86::RETL); + BuildMI(MBB, MBBI, DL, TII->get(X86::PUSH32r)).addReg(X86::ECX); + MIB = BuildMI(MBB, MBBI, DL, TII->get(X86::RETL)); } for (unsigned I = 1, E = MBBI->getNumOperands(); I != E; ++I) MIB.addOperand(MBBI->getOperand(I));