[llvm] [llubi] Add basic support for terminators (PR #181393)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 13 10:10:27 PST 2026
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 origin/main HEAD --extensions cpp,h -- llvm/tools/llubi/lib/Context.cpp llvm/tools/llubi/lib/Context.h llvm/tools/llubi/lib/Interpreter.cpp llvm/tools/llubi/lib/Value.h llvm/tools/llubi/llubi.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llubi/lib/Interpreter.cpp b/llvm/tools/llubi/lib/Interpreter.cpp
index 3f3bfe86e..29aadcf9e 100644
--- a/llvm/tools/llubi/lib/Interpreter.cpp
+++ b/llvm/tools/llubi/lib/Interpreter.cpp
@@ -358,7 +358,8 @@ public:
AnyValue callLibFunc(CallBase &CB, Function *ResolvedCallee) {
LibFunc LF;
// Respect nobuiltin attributes on call site.
- if (CB.isNoBuiltin() || !CurrentFrame->TLI.getLibFunc(*ResolvedCallee, LF)) {
+ if (CB.isNoBuiltin() ||
+ !CurrentFrame->TLI.getLibFunc(*ResolvedCallee, LF)) {
Handler.onUnrecognizedInstruction(CB);
Status = false;
return AnyValue();
``````````
</details>
https://github.com/llvm/llvm-project/pull/181393
More information about the llvm-commits
mailing list