[llvm] [BOLT] Ensure remember and restore CFIs are in the same list (PR #144348)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 16 06:19:09 PDT 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 HEAD~1 HEAD --extensions h -- bolt/include/bolt/Core/BinaryFunction.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/include/bolt/Core/BinaryFunction.h b/bolt/include/bolt/Core/BinaryFunction.h
index 828c56d81..af7149e49 100644
--- a/bolt/include/bolt/Core/BinaryFunction.h
+++ b/bolt/include/bolt/Core/BinaryFunction.h
@@ -1663,7 +1663,8 @@ public:
Offset = I->first;
}
assert(I->first == Offset && "CFI pointing to unknown instruction");
- if (I == Instructions.begin() && Inst.getOperation() != MCCFIInstruction::OpRememberState) {
+ if (I == Instructions.begin() &&
+ Inst.getOperation() != MCCFIInstruction::OpRememberState) {
CIEFrameInstructions.emplace_back(std::forward<MCCFIInstruction>(Inst));
return;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/144348
More information about the llvm-commits
mailing list