[llvm] [WIP] [CodeGen] Enable TrapUnreachable by default for all targets. (PR #109732)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 16:31:17 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 783bac7ffb8f0d58d7381d90fcaa082eb0be1c1d be690f76921b3563cc70fbff6284f07cdc1e76b2 --extensions cpp,h -- llvm/include/llvm/Target/TargetOptions.h llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp llvm/lib/CodeGen/LLVMTargetMachine.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/Target/AArch64/AArch64TargetMachine.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp llvm/lib/Target/ARM/ARMTargetMachine.cpp llvm/lib/Target/BPF/BPFTargetMachine.cpp llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp llvm/lib/Target/X86/X86TargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 8fcd5594f9..744d0b36e9 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -33,9 +33,9 @@
#include "llvm/Target/TargetOptions.h"
using namespace llvm;
-cl::opt<bool> EnableTrapUnreachable(
- "trap-unreachable", cl::Hidden,
- cl::desc("Enable generating trap for unreachable"));
+cl::opt<bool>
+ EnableTrapUnreachable("trap-unreachable", cl::Hidden,
+ cl::desc("Enable generating trap for unreachable"));
cl::opt<bool> EnableNoTrapAfterNoreturn(
"no-trap-after-noreturn", cl::Hidden,
``````````
</details>
https://github.com/llvm/llvm-project/pull/109732
More information about the llvm-commits
mailing list