diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-26 18:53:43 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-26 18:53:43 +0000 |
commit | a4e20e1e43df39e39328035c84c46fdcbbf3a01e (patch) | |
tree | 235c8b4ffbe8a9473cd646dc30cd77e84353a945 /lib/Sema/SemaInit.cpp | |
parent | 8f944492f21a2fb61d539d933add5b1fc7b00e94 (diff) |
Fix a typo in the new VerifyOnly handling in SemaInit. No visible difference at the moment, as far as I can tell.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 12df59fb76..9257b81335 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -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) |