[clang] f9e639e - Fix bots that are running with assertions enabled; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 16 06:23:46 PST 2020
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()) {
More information about the cfe-commits
mailing list