diff options
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r-- | llvm/tools/llvm-profdata/llvm-profdata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index 239aa1c..7754ca3 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp @@ -1303,7 +1303,7 @@ static void supplementInstrProfile(const WeightedFileVector &Inputs, unsigned SupplMinSizeThreshold, float ZeroCounterThreshold, unsigned InstrProfColdThreshold) { - if (OutputFilename.compare("-") == 0) + if (OutputFilename == "-") exitWithError("cannot write indexed profdata format to stdout"); if (Inputs.size() != 1) exitWithError("expect one input to be an instr profile"); |