diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-03-15 21:41:35 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-03-15 21:41:35 +0000 |
commit | 62bbe07f5aed5a2f9ae55ef480c4268cb4435d99 (patch) | |
tree | 488d86f1e7a7084874f265eab6b0f6e886b4e7bd /lib/Sema/SemaExpr.cpp | |
parent | 454d5b3ab316331b621b37d7c8b86db9f7d33fcc (diff) |
Add some assertions to appease the static analyzer.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index dc6132ca9f..3af64bb9f1 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -3807,6 +3807,7 @@ bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, Arg = ArgE.takeAs<Expr>(); } else { + assert(FDecl && "can't use default arguments without a known callee"); Param = FDecl->getParamDecl(i); ExprResult ArgExpr = |