[compiler-rt] [NFC][CFI] Add minimal runtime check for CFI (PR #137245)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 24 12:53:54 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions c -- compiler-rt/test/ubsan_minimal/TestCases/icall.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/ubsan_minimal/TestCases/icall.c b/compiler-rt/test/ubsan_minimal/TestCases/icall.c
index 31c336f7b..00aa3603d 100644
--- a/compiler-rt/test/ubsan_minimal/TestCases/icall.c
+++ b/compiler-rt/test/ubsan_minimal/TestCases/icall.c
@@ -2,8 +2,7 @@
// RUN: %clang -fsanitize=cfi-icall -fno-sanitize-trap=cfi-icall -fsanitize-recover=cfi-icall -flto -fvisibility=hidden %s -o %t && %run %t 2>&1 | FileCheck %s
-void f() {
-}
+void f() {}
int main() {
// CHECK: ubsan: cfi-check-fail by 0x
``````````
</details>
https://github.com/llvm/llvm-project/pull/137245
More information about the llvm-commits
mailing list