[llvm] [ExceptionDemo] Correct and update example ExceptionDemo (PR #69485)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 10:25:40 PDT 2023
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 a587f42953930119d743da863458eaee45c6b70c 5ca838af186cd168045380e5f6c6eb8c32f1a697 -- 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 97deb7b4393f..c66218d1561d 100644
--- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
+++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
@@ -1556,8 +1556,7 @@ static void runExceptionThrow(llvm::orc::LLJIT *JIT, std::string function,
// Find test's function pointer
OurExceptionThrowFunctType functPtr =
reinterpret_cast<OurExceptionThrowFunctType>(reinterpret_cast<uintptr_t>(
- ExitOnErr(JIT->lookup(function))
- .getValue()));
+ ExitOnErr(JIT->lookup(function)).getValue()));
try {
// Run test
@@ -1586,7 +1585,6 @@ static void runExceptionThrow(llvm::orc::LLJIT *JIT, std::string function,
// End test functions
//
-
/// This initialization routine creates type info globals and
/// adds external function declarations to module.
/// @param numTypeInfos number of linear type info associated type info types
``````````
</details>
https://github.com/llvm/llvm-project/pull/69485
More information about the llvm-commits
mailing list