[llvm] [NFC] One-liner clang-format (PR #140104)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 10:14:32 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-pgo

Author: Mingming Liu (mingmingl-llvm)

<details>
<summary>Changes</summary>

`InstrProfWriter::setOutputSparse` gets re-formatted when InstrProfWriter.cpp is modified. So formatted this line.

---
Full diff: https://github.com/llvm/llvm-project/pull/140104.diff


1 Files Affected:

- (modified) llvm/lib/ProfileData/InstrProfWriter.cpp (+1-3) 


``````````diff
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index 2759346935b14..9dc1a0d0b4678 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -152,9 +152,7 @@ void InstrProfWriter::setValueProfDataEndianness(llvm::endianness Endianness) {
   InfoObj->ValueProfDataEndianness = Endianness;
 }
 
-void InstrProfWriter::setOutputSparse(bool Sparse) {
-  this->Sparse = Sparse;
-}
+void InstrProfWriter::setOutputSparse(bool Sparse) { this->Sparse = Sparse; }
 
 void InstrProfWriter::addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
                                 function_ref<void(Error)> Warn) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/140104


More information about the llvm-commits mailing list