13 lines · plain
1; RUN: not opt -S -passes=kcfi %s 2>&1 | FileCheck %s2 3; CHECK: error: -fpatchable-function-entry=N,M, where M>0 is not compatible with -fsanitize=kcfi on this target4define void @f1(ptr noundef %x) #0 {5 call void %x() [ "kcfi"(i32 12345678) ]6 ret void7}8 9attributes #0 = { "patchable-function-prefix"="1" }10 11!llvm.module.flags = !{!0}12!0 = !{i32 4, !"kcfi", i32 1}13