diff options
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/Environment.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/Environment.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Environment.cpp b/clang/lib/StaticAnalyzer/Core/Environment.cpp index 3ebb66c6af1..94cc4d6dbb2 100644 --- a/clang/lib/StaticAnalyzer/Core/Environment.cpp +++ b/clang/lib/StaticAnalyzer/Core/Environment.cpp @@ -263,10 +263,12 @@ void Environment::printJson(raw_ostream &Out, const ASTContext &Ctx, Indent(Out, InnerSpace, IsDot) << "{ \"lctx_id\": " << LC->getID() << ", \"stmt_id\": " << S->getID(Ctx) << ", \"pretty\": "; - S->printJson(Out, nullptr, PP, /*AddQuotes=*/true); - Out << ", \"value\": \"" << I->second << "\" }"; + Out << ", \"value\": "; + I->second.printJson(Out, /*AddQuotes=*/true); + + Out << " }"; if (I != LastI) Out << ','; |