We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 123758b commit 0440773Copy full SHA for 0440773
llvm/lib/Target/X86/X86AvoidTrailingCall.cpp
@@ -82,7 +82,8 @@ static bool isCallInstruction(const MachineInstr &MI) {
82
bool X86AvoidTrailingCallPass::runOnMachineFunction(MachineFunction &MF) {
83
const X86Subtarget &STI = MF.getSubtarget<X86Subtarget>();
84
const X86InstrInfo &TII = *STI.getInstrInfo();
85
- assert(STI.isTargetWin64() && "pass only runs on Win64");
+ assert((STI.isTargetWin64() || STI.isTargetUEFI64()) &&
86
+ "pass only runs on Win64 and UEFI64");
87
88
// We don't need to worry about any of the invariants described above if there
89
// is no unwind info (CFI).
0 commit comments