diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn index b44f8b5d86f1c9..68c0cbfd384a65 100644 --- a/llvm/utils/gn/build/BUILD.gn +++ b/llvm/utils/gn/build/BUILD.gn @@ -375,6 +375,7 @@ config("compiler_defaults") { "ubsan only supported on iOS/Clang, Linux/Clang, or macOS/Clang") cflags += [ "-fsanitize=undefined", + "-fno-sanitize=vptr,function", "-fno-sanitize-recover=all", ] ldflags += [ "-fsanitize=undefined" ]