Skip to content

Commit 1bf531a

Browse files
[BOLT] Use boolean literals (NFC)
Identified with modernize-use-bool-literals.
1 parent ed29930 commit 1bf531a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bolt/lib/Passes/ReorderFunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void ReorderFunctions::runOnFunctions(BinaryContext &BC) {
339339
BinaryData *BD = BC.getBinaryDataByName(Function);
340340
if (!BD) {
341341
uint32_t LocalID = 1;
342-
while(1) {
342+
while (true) {
343343
// If we can't find the main symbol name, look for alternates.
344344
const std::string FuncName =
345345
Function + "/" + std::to_string(LocalID);

bolt/lib/Profile/DataReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ ErrorOr<StringRef> DataReader::parseString(char EndChar, bool EndNl) {
866866
break;
867867

868868
StringEnd += 2;
869-
} while (1);
869+
} while (true);
870870

871871
StringRef Str = ParsingBuf.substr(0, StringEnd);
872872

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void printDie(const DWARFDie &DIE) {
5151
DumpOpts.ShowForm = true;
5252
DumpOpts.Verbose = true;
5353
DumpOpts.ChildRecurseDepth = 0;
54-
DumpOpts.ShowChildren = 0;
54+
DumpOpts.ShowChildren = false;
5555
DIE.dump(dbgs(), 0, DumpOpts);
5656
}
5757

0 commit comments

Comments
 (0)