[llvm] [WinEH] Emit state stores before SEH scopes (PR #116546)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 17 06:58:47 PST 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 4f48a81a620bc9280be4780f3554cdc9bda55bd3 9f371c24d6f1f8e28978f671acef8dfa89e26a4a --extensions cpp -- llvm/lib/Target/X86/X86WinEHState.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/X86/X86WinEHState.cpp b/llvm/lib/Target/X86/X86WinEHState.cpp
index f273e997c1..e6aad3fa2a 100644
--- a/llvm/lib/Target/X86/X86WinEHState.cpp
+++ b/llvm/lib/Target/X86/X86WinEHState.cpp
@@ -606,9 +606,8 @@ static int getSuccState(DenseMap<BasicBlock *, int> &InitialStates, Function &F,
 
 static bool isSehScopeBegin(const CallBase &Call) {
   const Function *CF = Call.getCalledFunction();
-  return CF
-         && CF->isIntrinsic()
-         && CF->getIntrinsicID() == Intrinsic::seh_scope_begin;
+  return CF && CF->isIntrinsic() &&
+         CF->getIntrinsicID() == Intrinsic::seh_scope_begin;
 }
 
 bool WinEHStatePass::isStateStoreNeeded(EHPersonality Personality,

``````````

</details>


https://github.com/llvm/llvm-project/pull/116546


More information about the llvm-commits mailing list