don't highlight field name, just put a caret on it.

llvm-svn: 59255
This commit is contained in:
Chris Lattner 2008-11-13 18:49:38 +00:00
parent 7464fc784e
commit f3e388d1bf
1 changed files with 2 additions and 2 deletions

View 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;
}