[llvm] Revert "[NFC][llvm-exegesis] Disable CFI-icall for JIT-executed function" (PR #202571)

Dmitry Vasilyev via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 03:25:03 PDT 2026


https://github.com/slydiman created https://github.com/llvm/llvm-project/pull/202571

Reverts llvm/llvm-project#202472

>From 35199747509b5932d23efb4b8962bf6f8dfdade5 Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev <slydiman at gmail.com>
Date: Tue, 9 Jun 2026 14:24:50 +0400
Subject: [PATCH] =?UTF-8?q?Revert=20"[NFC][llvm-exegesis]=20Disable=20CFI-?=
 =?UTF-8?q?icall=20for=20JIT-executed=20function=20(#20=E2=80=A6"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This reverts commit 1ada747bd3be297fcd2ac309f679f0a4024c1b1f.
---
 llvm/tools/llvm-exegesis/lib/Assembler.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/tools/llvm-exegesis/lib/Assembler.h b/llvm/tools/llvm-exegesis/lib/Assembler.h
index 61ecc8a6653d9..1c8854c21b9a7 100644
--- a/llvm/tools/llvm-exegesis/lib/Assembler.h
+++ b/llvm/tools/llvm-exegesis/lib/Assembler.h
@@ -114,8 +114,7 @@ class ExecutableFunction {
   StringRef getFunctionBytes() const { return FunctionBytes; }
 
   // Executes the function.
-  void operator()(char *Memory) const
-      __attribute__((no_sanitize("cfi-icall"))) /* Incompatible with JIT */ {
+  void operator()(char *Memory) const {
     ((void (*)(char *))(uintptr_t)FunctionBytes.data())(Memory);
   }
 



More information about the llvm-commits mailing list