summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index 3386f2660f3..0c85faecca8 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -362,8 +362,10 @@ void TimerGroup::printAll(raw_ostream &OS) {
void TimerGroup::printJSONValue(raw_ostream &OS, const PrintRecord &R,
const char *suffix, double Value) {
- assert(!yaml::needsQuotes(Name) && "TimerGroup name needs no quotes");
- assert(!yaml::needsQuotes(R.Name) && "Timer name needs no quotes");
+ assert(yaml::needsQuotes(Name) == yaml::QuotingType::None &&
+ "TimerGroup name needs no quotes");
+ assert(yaml::needsQuotes(R.Name) == yaml::QuotingType::None &&
+ "Timer name needs no quotes");
OS << "\t\"time." << Name << '.' << R.Name << suffix << "\": " << Value;
}
OpenPOWER on IntegriCloud