Skip to content

Commit 1ada747

Browse files
authored
[NFC][llvm-exegesis] Disable CFI-icall for JIT-executed function (#202472)
1 parent 324ea3a commit 1ada747

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

llvm/tools/llvm-exegesis/lib/Assembler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ class ExecutableFunction {
114114
StringRef getFunctionBytes() const { return FunctionBytes; }
115115

116116
// Executes the function.
117-
void operator()(char *Memory) const {
117+
void operator()(char *Memory) const
118+
__attribute__((no_sanitize("cfi-icall"))) /* Incompatible with JIT */ {
118119
((void (*)(char *))(uintptr_t)FunctionBytes.data())(Memory);
119120
}
120121

0 commit comments

Comments
 (0)