From d03d99da163f0682c8a88ae3541725c2883d5bf8 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Tue, 5 Mar 2013 01:27:54 +0000 Subject: Silence a number of static analyzer warnings with assertions and such. No functionality change. llvm-svn: 176469 --- clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp') diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp index 9bc890847c2..2f2eb8628a0 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp @@ -649,6 +649,8 @@ void ExprEngine::VisitGuardedExpr(const Expr *Ex, break; } + assert(SrcBlock && "missing function entry"); + // Find the last expression in the predecessor block. That is the // expression that is used for the value of the ternary expression. bool hasValue = false; -- cgit v1.2.3