[libc] [lldb] [llvm] [mlir] [polly] Fix simple bugs (PR #117151)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 04:46:21 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 46f43b6d92e49b80df13e8a537a95767ffbaac9f ee6ab90efad3153cd5f49f1fd3589143291ae68b --extensions c,cpp,h -- bolt/lib/Passes/ShrinkWrapping.cpp bolt/lib/Rewrite/LinuxKernelRewriter.cpp libc/fuzzing/math/Compare.h lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp polly/lib/External/isl/isl_local_space.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Passes/ShrinkWrapping.cpp b/bolt/lib/Passes/ShrinkWrapping.cpp
index bc4e7e6e38..8fcd8d5c68 100644
--- a/bolt/lib/Passes/ShrinkWrapping.cpp
+++ b/bolt/lib/Passes/ShrinkWrapping.cpp
@@ -79,7 +79,7 @@ void CalleeSavedAnalysis::analyzeSaves() {
// with it
if (SRU.isStoreUsed(*FIE,
Prev ? SRU.expr_begin(*Prev) : SRU.expr_begin(BB),
- /*IncludeLocalAccesses=*/false)) {
+ /*IncludeLocalAccesses=*/false)) {
BlacklistedRegs.set(FIE->RegOrImm);
CalleeSaved.reset(FIE->RegOrImm);
Prev = &Inst;
diff --git a/polly/lib/External/isl/isl_local_space.c b/polly/lib/External/isl/isl_local_space.c
index 1bffcd544e..9567479a69 100644
--- a/polly/lib/External/isl/isl_local_space.c
+++ b/polly/lib/External/isl/isl_local_space.c
@@ -254,8 +254,8 @@ isl_size isl_local_space_var_offset(__isl_keep isl_local_space *ls,
isl_space *space;
space = isl_local_space_peek_space(ls);
- if (space == NULL)
- return isl_size_error;
+ if (space == NULL)
+ return isl_size_error;
switch (type) {
case isl_dim_param:
case isl_dim_in:
``````````
</details>
https://github.com/llvm/llvm-project/pull/117151
More information about the llvm-commits
mailing list