don't highlight field name, just put a caret on it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59255 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 8c3a5c1..6dd9fa7 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -2533,10 +2533,10 @@
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;
}