[lld] [lld][NFC] Remove unnecessary else statements. (PR #69451)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 05:03:39 PDT 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 cbbb545c4618969850d88bb008ab7f1c2918d5c3 6f39ffdc5174ae528928f7b86ffd20c82892856a -- lld/COFF/Chunks.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/COFF/Chunks.h b/lld/COFF/Chunks.h
index ca125a19c..dec395a18 100644
--- a/lld/COFF/Chunks.h
+++ b/lld/COFF/Chunks.h
@@ -392,8 +392,7 @@ inline size_t Chunk::getSize() const {
inline uint32_t Chunk::getOutputCharacteristics() const {
if (isa<SectionChunk>(this))
return static_cast<const SectionChunk *>(this)->getOutputCharacteristics();
- return static_cast<const NonSectionChunk *>(this)
- ->getOutputCharacteristics();
+ return static_cast<const NonSectionChunk *>(this)->getOutputCharacteristics();
}
inline void Chunk::writeTo(uint8_t *buf) const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/69451
More information about the llvm-commits
mailing list