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

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 10:09:02 PDT 2025


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

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

>From 384f9562d672a489889de09494d4eed0e35c4616 Mon Sep 17 00:00:00 2001
From: mingmingl <mingmingl at google.com>
Date: Thu, 15 May 2025 10:05:57 -0700
Subject: [PATCH] clang-format

---
 llvm/lib/ProfileData/InstrProfWriter.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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) {



More information about the llvm-commits mailing list