Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion llvm/lib/Target/X86/X86AvoidTrailingCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ static bool isCallInstruction(const MachineInstr &MI) {
bool X86AvoidTrailingCallPass::runOnMachineFunction(MachineFunction &MF) {
const X86Subtarget &STI = MF.getSubtarget<X86Subtarget>();
const X86InstrInfo &TII = *STI.getInstrInfo();
assert(STI.isTargetWin64() && "pass only runs on Win64");
assert((STI.isTargetWin64() || STI.isTargetUEFI64()) &&
"pass only runs on Win64 and UEFI64");

// We don't need to worry about any of the invariants described above if there
// is no unwind info (CFI).
Expand Down