[llvm] [ExceptionDemo] Transition example from MCJIT to ORC and fix compiling errors (PR #92504)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 08:58:12 PST 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 c2979c58d49bf3c7dc892ed9fb49cdca389130ee 90fc6db3e4a851cdf8c2de75f79e11c5cd89aeab --extensions cpp -- llvm/examples/ExceptionDemo/ExceptionDemo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
index df2de14401..ff7e08e919 100644
--- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
+++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
@@ -1243,10 +1243,7 @@ static llvm::Function *createCatchWrappedInvokeFunction(
// the exception is foreign.
llvm::Value *unwindExceptionClass = builder.CreateLoad(
builder.getInt64Ty(),
- builder.CreateStructGEP(
- ourUnwindExceptionType,
- unwindException,
- 0));
+ builder.CreateStructGEP(ourUnwindExceptionType, unwindException, 0));
// Branch to the externalExceptionBlock if the exception is foreign or
// to a catch router if not. Either way the finally block will be run.
``````````
</details>
https://github.com/llvm/llvm-project/pull/92504
More information about the llvm-commits
mailing list