Author: Aaron Ballman
Date: 2020-11-16T09:23:10-05:00
New Revision: f9e639efda4aa391a2f247abf69912ca2d29217f

URL: 
https://github.com/llvm/llvm-project/commit/f9e639efda4aa391a2f247abf69912ca2d29217f
DIFF: 
https://github.com/llvm/llvm-project/commit/f9e639efda4aa391a2f247abf69912ca2d29217f.diff

LOG: Fix bots that are running with assertions enabled; NFC.

Added: 
    

Modified: 
    clang/lib/Sema/SemaType.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index cf82ae7bd4d4..6c4475f6a624 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -1582,7 +1582,8 @@ static QualType ConvertDeclSpecToType(TypeProcessingState 
&state) {
     S.DiagnoseUseOfDecl(D, DS.getTypeSpecTypeNameLoc());
 
     assert(DS.getTypeSpecWidth() == TypeSpecifierWidth::Unspecified &&
-           DS.getTypeSpecComplex() == 0 && DS.getTypeSpecSign() == 0 &&
+           DS.getTypeSpecComplex() == 0 &&
+           DS.getTypeSpecSign() == TypeSpecifierSign::Unspecified &&
            "No qualifiers on tag names!");
 
     // TypeQuals handled by caller.
@@ -1598,7 +1599,7 @@ static QualType ConvertDeclSpecToType(TypeProcessingState 
&state) {
   case DeclSpec::TST_typename: {
     assert(DS.getTypeSpecWidth() == TypeSpecifierWidth::Unspecified &&
            DS.getTypeSpecComplex() == 0 &&
-           DS.getTypeSpecSign() == 0 &&
+           DS.getTypeSpecSign() == TypeSpecifierSign::Unspecified &&
            "Can't handle qualifiers on typedef names yet!");
     Result = S.GetTypeFromParser(DS.getRepAsType());
     if (Result.isNull()) {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to