[llvm] [llubi][NFC] Fix build with old GCC (PR #195327)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 11:57:16 PDT 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 -- llvm/tools/llubi/lib/Interpreter.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 e40d35a8b..cc8b70b98 100644
--- a/llvm/tools/llubi/lib/Interpreter.cpp
+++ b/llvm/tools/llubi/lib/Interpreter.cpp
@@ -786,7 +786,8 @@ public:
const uint64_t Offset = Chunk * EVL;
if (Offset > Vec.size() || EVL > Vec.size() - Offset)
return AnyValue::poison();
- return std::vector<AnyValue>(Vec.begin() + Offset, Vec.begin() + Offset + EVL);
+ return std::vector<AnyValue>(Vec.begin() + Offset,
+ Vec.begin() + Offset + EVL);
}
case Intrinsic::vector_reverse: {
auto Vec = Args[0].asAggregate();
``````````
</details>
https://github.com/llvm/llvm-project/pull/195327
More information about the llvm-commits
mailing list