[clang] [llvm] [X86] Extend kCFI with a 3-bit arity indicator (PR #121070)
Scott Constable via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 26 11:34:09 PST 2024
================
@@ -181,8 +181,26 @@ void X86AsmPrinter::emitKCFITypeId(const MachineFunction &MF) {
// Embed the type hash in the X86::MOV32ri instruction to avoid special
// casing object file parsers.
EmitKCFITypePadding(MF);
+
+ Register MovReg = X86::EAX;
+ const auto &Triple = MF.getTarget().getTargetTriple();
+ if (Triple.isArch64Bit() && Triple.isOSLinux()) {
----------------
scottconstable wrote:
@phoebewang Good suggestion! I updated the PR to use an assert.
https://github.com/llvm/llvm-project/pull/121070
More information about the llvm-commits
mailing list