aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-03-02 17:05:03 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-03-02 17:05:03 +0000
commita0e005b06b271f6dd1fdbbeed03d9e14f7f3e6a3 (patch)
tree435d50a3e5add63dc9730c5c70e9ef3f18a1b004 /lib/Sema/SemaExpr.cpp
parentc169e08f3ad678df4ffb87cbbe5096208f6bf40a (diff)
Change diagnostic test for my last patch.
// rdar://10961370 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index ece16e8850..1bab239ab3 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -587,11 +587,10 @@ ExprResult Sema::DefaultVariadicArgumentPromotion(Expr *E, VariadicCallType CT,
E = Comma.get();
}
}
- // c++ rules are enfroced elsewhere.
+ // c++ rules are enforced elsewhere.
if (!getLangOptions().CPlusPlus &&
- !E->getType()->isVoidType() &&
RequireCompleteType(E->getExprLoc(), E->getType(),
- diag::err_incomplete_type))
+ diag::err_call_incomplete_argument))
return ExprError();
return Owned(E);