blob: 15f1cf452d1845ea2f54ecadbdc824fd448b1060 [file] [log] [blame]
; 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}