forked from OSchip/llvm-project
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:
parent
9bc838415e
commit
ed0f9168de
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue