bolt/deps/llvm-18.1.8/llvm/test/Transforms/KCFI/kcfi-patchable-function-prefix.ll

13 lines
370 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: not opt -S -passes=kcfi %s 2>&1 | FileCheck %s
; CHECK: error: -fpatchable-function-entry=N,M, where M>0 is not compatible with -fsanitize=kcfi on this target
define void @f1(ptr noundef %x) #0 {
call void %x() [ "kcfi"(i32 12345678) ]
ret void
}
attributes #0 = { "patchable-function-prefix"="1" }
!llvm.module.flags = !{!0}
!0 = !{i32 4, !"kcfi", i32 1}