Skip to content

Commit 157f68e

Browse files
authored
Demangling: Fix off-by-one assert in mangleOpaqueType
1 parent db6de66 commit 157f68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Demangling/Remangler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3327,7 +3327,7 @@ ManglingError Remangler::mangleOpaqueType(Node *node, unsigned depth) {
33273327
if (trySubstitution(node, entry))
33283328
return ManglingError::Success;
33293329

3330-
DEMANGLER_ASSERT(node->getNumChildren() >= 2, node);
3330+
DEMANGLER_ASSERT(node->getNumChildren() >= 3, node);
33313331
RETURN_IF_ERROR(mangle(node->getChild(0), depth + 1));
33323332
auto boundGenerics = node->getChild(2);
33333333
for (unsigned i = 0; i < boundGenerics->getNumChildren(); ++i) {

0 commit comments

Comments
 (0)