File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,9 @@ void X86AsmPrinter::emitKCFITypeId(const MachineFunction &MF) {
192192 unsigned DestReg = X86::EAX;
193193
194194 if (F.getParent ()->getModuleFlag (" kcfi-arity" )) {
195- // The ArityToRegMap assumes the 64-bit Linux kernel ABI
195+ // The ArityToRegMap assumes the 64-bit SysV ABI.
196196 [[maybe_unused]] const auto &Triple = MF.getTarget ().getTargetTriple ();
197- assert (Triple.isArch64Bit () && Triple.isOSLinux ());
197+ assert (Triple.isArch64Bit () && ! Triple.isOSWindows ());
198198
199199 // Determine the function's arity (i.e., the number of arguments) at the ABI
200200 // level by counting the number of parameters that are passed
Original file line number Diff line number Diff line change 11; RUN: llc -mtriple=x86_64-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s --check-prefix=ASM
2+ ; RUN: llc -mtriple=x86_64-unknown-none -verify-machineinstrs < %s | FileCheck %s --check-prefix=ASM
23; RUN: llc -mtriple=x86_64-unknown-linux-gnu -verify-machineinstrs -stop-after=finalize-isel < %s | FileCheck %s --check-prefixes=MIR,ISEL
34; RUN: llc -mtriple=x86_64-unknown-linux-gnu -verify-machineinstrs -stop-after=kcfi < %s | FileCheck %s --check-prefixes=MIR,KCFI
45
You can’t perform that action at this time.
0 commit comments