[clang] [compiler-rt] [UBSan] Diagnose assumption violation (PR #104741)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 22:08:36 PDT 2024
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 18b9d49ce3370c012fdd04ec87d854d53293f6a6 7bcaa3bb81e54edc440abc2b4d5ac85289c6b522 --extensions cpp,c,h -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/CodeGen/CGStmt.cpp clang/lib/CodeGen/CodeGenFunction.h clang/test/CodeGen/ubsan-builtin-checks.c compiler-rt/lib/ubsan/ubsan_handlers.cpp compiler-rt/lib/ubsan/ubsan_handlers.h compiler-rt/test/ubsan/TestCases/Misc/builtins.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/ubsan/ubsan_handlers.cpp b/compiler-rt/lib/ubsan/ubsan_handlers.cpp
index bc8fc02d4d..a419cf0b2b 100644
--- a/compiler-rt/lib/ubsan/ubsan_handlers.cpp
+++ b/compiler-rt/lib/ubsan/ubsan_handlers.cpp
@@ -637,7 +637,7 @@ static void handleInvalidBuiltin(InvalidBuiltinData *Data, ReportOptions Opts) {
Diag(Loc, DL_Error, ET, "assumption is violated during execution");
else
Diag(Loc, DL_Error, ET,
- "passing zero to __builtin_%0(), which is not a valid argument")
+ "passing zero to __builtin_%0(), which is not a valid argument")
<< ((Data->Kind == BCK_CTZPassedZero) ? "ctz" : "clz");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/104741
More information about the llvm-commits
mailing list