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

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


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-tools-llvm-exegesis

Author: Dmitry Vasilyev (slydiman)

<details>
<summary>Changes</summary>

Reverts llvm/llvm-project#<!-- -->202472

---
Full diff: https://github.com/llvm/llvm-project/pull/202571.diff


1 Files Affected:

- (modified) llvm/tools/llvm-exegesis/lib/Assembler.h (+1-2) 


``````````diff
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);
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list