From 0dbb783c7be1756482c491b3635dd07dd5fe712c Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 27 May 2014 02:45:47 +0000 Subject: [C++11] Use 'nullptr'. StaticAnalyzer edition. llvm-svn: 209642 --- clang/lib/StaticAnalyzer/Core/Environment.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/StaticAnalyzer/Core/Environment.cpp') diff --git a/clang/lib/StaticAnalyzer/Core/Environment.cpp b/clang/lib/StaticAnalyzer/Core/Environment.cpp index 0041d9f7d21..6a26650aea3 100644 --- a/clang/lib/StaticAnalyzer/Core/Environment.cpp +++ b/clang/lib/StaticAnalyzer/Core/Environment.cpp @@ -54,7 +54,8 @@ static const Stmt *ignoreTransparentExprs(const Stmt *S) { EnvironmentEntry::EnvironmentEntry(const Stmt *S, const LocationContext *L) : std::pair(ignoreTransparentExprs(S), - L ? L->getCurrentStackFrame() : 0) {} + L ? L->getCurrentStackFrame() + : nullptr) {} SVal Environment::lookupExpr(const EnvironmentEntry &E) const { const SVal* X = ExprBindings.lookup(E); @@ -208,7 +209,7 @@ void Environment::print(raw_ostream &Out, const char *NL, Out << " (" << (const void*) En.getLocationContext() << ',' << (const void*) S << ") "; LangOptions LO; // FIXME. - S->printPretty(Out, 0, PrintingPolicy(LO)); + S->printPretty(Out, nullptr, PrintingPolicy(LO)); Out << " : " << I.getData(); } } -- cgit v1.2.3