aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 8c3a5c12c6..6dd9fa7c4b 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -2533,10 +2533,10 @@ Sema::DeclTy *Sema::ActOnField(Scope *S,
if (T->isVariablyModifiedType()) {
QualType FixedTy = TryToFixInvalidVariablyModifiedType(T, Context);
if (!FixedTy.isNull()) {
- Diag(Loc, diag::warn_illegal_constant_array_size, Loc);
+ Diag(Loc, diag::warn_illegal_constant_array_size);
T = FixedTy;
} else {
- Diag(Loc, diag::err_typecheck_field_variable_size, Loc);
+ Diag(Loc, diag::err_typecheck_field_variable_size);
T = Context.IntTy;
InvalidDecl = true;
}