Skip to content

Commit 77a67e1

Browse files
committed
AST: Relax assertions in PackType::get()
1 parent 5c7de10 commit 77a67e1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/AST/ASTContext.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,11 +3258,6 @@ PackType *PackType::get(const ASTContext &C, ArrayRef<Type> elements) {
32583258
RecursiveTypeProperties properties;
32593259
bool isCanonical = true;
32603260
for (Type eltTy : elements) {
3261-
assert(!eltTy->isTypeParameter() ||
3262-
!eltTy->getRootGenericParam()->isParameterPack() &&
3263-
"Pack type parameter outside of a pack expansion");
3264-
assert(!eltTy->is<PackArchetypeType>() &&
3265-
"Pack type archetype outside of a pack expansion");
32663261
assert(!eltTy->is<PackType>() &&
32673262
"Cannot have pack directly inside another pack");
32683263

0 commit comments

Comments
 (0)