[llvm-branch-commits] [llvm] 3519974 - Revert "[NFC][llvm-exegesis] Disable CFI-icall for JIT-executed function (#20…"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 9 03:24:53 PDT 2026
Author: Dmitry Vasilyev
Date: 2026-06-09T14:24:50+04:00
New Revision: 35199747509b5932d23efb4b8962bf6f8dfdade5
URL: https://github.com/llvm/llvm-project/commit/35199747509b5932d23efb4b8962bf6f8dfdade5
DIFF: https://github.com/llvm/llvm-project/commit/35199747509b5932d23efb4b8962bf6f8dfdade5.diff
LOG: Revert "[NFC][llvm-exegesis] Disable CFI-icall for JIT-executed function (#20…"
This reverts commit 1ada747bd3be297fcd2ac309f679f0a4024c1b1f.
Added:
Modified:
llvm/tools/llvm-exegesis/lib/Assembler.h
Removed:
################################################################################
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-branch-commits
mailing list