[clang] [clang-tools-extra] [llvm] [BOLT] Use direct storage for Label annotations. NFCI. (PR #70147)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 13:59:59 PST 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 0156b6ed6561f67f1b86ceef027908dd425e0615 924768f777245a271cfb84243c2c6ac980df1671 -- bolt/include/bolt/Core/MCPlusBuilder.h bolt/lib/Core/MCPlusBuilder.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Core/MCPlusBuilder.cpp b/bolt/lib/Core/MCPlusBuilder.cpp
index deb3a8728acc..b99d0f21e6af 100644
--- a/bolt/lib/Core/MCPlusBuilder.cpp
+++ b/bolt/lib/Core/MCPlusBuilder.cpp
@@ -268,7 +268,7 @@ bool MCPlusBuilder::clearOffset(MCInst &Inst) const {
MCSymbol *MCPlusBuilder::getLabel(const MCInst &Inst) const {
if (std::optional<int64_t> Label =
- getAnnotationOpValue(Inst, MCAnnotation::kLabel))
+ getAnnotationOpValue(Inst, MCAnnotation::kLabel))
return reinterpret_cast<MCSymbol *>(*Label);
return nullptr;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/70147
More information about the llvm-commits
mailing list