Skip to content

Commit

Permalink
Replace assert with returning default value
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Oct 7, 2024
1 parent 6770f17 commit f8b3d77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/lib/resolution/InitResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ static const DomainType* domainTypeFromSubsHelper(
} else if (baseDom->id().symbolPath() == "ChapelDistribution.BaseSparseDom") {
// TODO: support sparse domains
} else {
CHPL_ASSERT(false && "unexpected type of domain");
// not a recognized domain type
return genericDomain;
}
}
}
Expand Down

0 comments on commit f8b3d77

Please sign in to comment.