r242670 - Silence a -Wtype-limits warning; NFC.
Aaron Ballman
aaron at aaronballman.com
Mon Jul 20 06:36:07 PDT 2015
Author: aaronballman
Date: Mon Jul 20 08:36:07 2015
New Revision: 242670
URL: http://llvm.org/viewvc/llvm-project?rev=242670&view=rev
Log:
Silence a -Wtype-limits warning; NFC.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=242670&r1=242669&r2=242670&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon Jul 20 08:36:07 2015
@@ -4138,7 +4138,7 @@ static void DiagnoseBaseOrMemInitializer
if (InitKey == IdealInitKeys[IdealIndex])
break;
- assert(IdealIndex >= 0 && IdealIndex < NumIdealInits &&
+ assert(IdealIndex < NumIdealInits &&
"initializer not found in initializer list");
}
More information about the cfe-commits
mailing list