diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-03-05 01:27:54 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-03-05 01:27:54 +0000 |
commit | d03d99da163f0682c8a88ae3541725c2883d5bf8 (patch) | |
tree | 3d1063b7ac40e8fb63948ccb90bfa5d205d7d974 /clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp | |
parent | 8a7a59226d48ae98bd5bc09adc111be543b5e941 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |