From: Haojian Wu Date: Wed, 29 May 2019 18:36:54 +0000 (+0000) Subject: Fix an unused-variable error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4826ab6a5e22ac62bf788d00d51fa031b3cab244;p=clang Fix an unused-variable error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362005 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/Environment.cpp b/lib/StaticAnalyzer/Core/Environment.cpp index df2402ba01..3ebb66c6af 100644 --- a/lib/StaticAnalyzer/Core/Environment.cpp +++ b/lib/StaticAnalyzer/Core/Environment.cpp @@ -248,6 +248,7 @@ void Environment::printJson(raw_ostream &Out, const ASTContext &Ctx, } const Stmt *S = I->first.getStmt(); + (void)S; assert(S != nullptr && "Expected non-null Stmt"); LastI = I;