Fix a typo in the new VerifyOnly handling in SemaInit. No visible difference at the moment, as far as I can tell.

llvm-svn: 140546
This commit is contained in:
Eli Friedman 2011-09-26 18:53:43 +00:00
parent 9bc838415e
commit ed0f9168de
1 changed files with 1 additions and 1 deletions

View File

@ -1878,7 +1878,7 @@ InitListChecker::CheckDesignatedInitializer(const InitializedEntity &Entity,
= DesignatedEndIndex.extOrTrunc(MaxElements.getBitWidth());
DesignatedEndIndex.setIsUnsigned(MaxElements.isUnsigned());
if (DesignatedEndIndex >= MaxElements) {
if (VerifyOnly)
if (!VerifyOnly)
SemaRef.Diag(IndexExpr->getSourceRange().getBegin(),
diag::err_array_designator_too_large)
<< DesignatedEndIndex.toString(10) << MaxElements.toString(10)