]> granicus.if.org Git - clang/commitdiff
don't highlight field name, just put a caret on it.
authorChris Lattner <sabre@nondot.org>
Thu, 13 Nov 2008 18:49:38 +0000 (18:49 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 13 Nov 2008 18:49:38 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59255 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 8c3a5c12c69cd7c581aabab7a74b77a96804cee1..6dd9fa7c4bc7dd1ea3408b808b362ee77acde218 100644 (file)
@@ -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;
     }