Show diagnostics of possible value print errors.

This commit is contained in:
Axel Naumann 2017-06-23 16:48:26 +02:00 committed by sftnight
parent 27aea4b5a0
commit dc04fb555c

View File

@ -603,11 +603,7 @@ static std::string callPrintValue(const Value& V, const void* Val) {
// We really don't care about protected types here (ROOT-7426)
AccessCtrlRAII_t AccessCtrlRAII(*Interp);
clang::DiagnosticsEngine& Diag = Interp->getDiagnostics();
bool oldSuppDiags = Diag.getSuppressAllDiagnostics();
Diag.setSuppressAllDiagnostics(true);
Interp->evaluate(Strm.str(), printValueV);
Diag.setSuppressAllDiagnostics(oldSuppDiags);
}
if (printValueV.isValid() && printValueV.getPtr())