Skip to content

Commit 7d7f358

Browse files
[llvm-profdata] Simplify a string equality comparison (NFC)
1 parent 687136e commit 7d7f358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-profdata/llvm-profdata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ static void supplementInstrProfile(const WeightedFileVector &Inputs,
13031303
unsigned SupplMinSizeThreshold,
13041304
float ZeroCounterThreshold,
13051305
unsigned InstrProfColdThreshold) {
1306-
if (OutputFilename.compare("-") == 0)
1306+
if (OutputFilename == "-")
13071307
exitWithError("cannot write indexed profdata format to stdout");
13081308
if (Inputs.size() != 1)
13091309
exitWithError("expect one input to be an instr profile");

0 commit comments

Comments
 (0)