summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-05 01:27:54 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-05 01:27:54 +0000
commitd03d99da163f0682c8a88ae3541725c2883d5bf8 (patch)
tree3d1063b7ac40e8fb63948ccb90bfa5d205d7d974 /clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
parent8a7a59226d48ae98bd5bc09adc111be543b5e941 (diff)
downloadbcm5719-llvm-d03d99da163f0682c8a88ae3541725c2883d5bf8.tar.gz
bcm5719-llvm-d03d99da163f0682c8a88ae3541725c2883d5bf8.zip
Silence a number of static analyzer warnings with assertions and such.
No functionality change. llvm-svn: 176469
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp2
1 files changed, 2 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud