Skip to content

Commit

Permalink
add sanity check asserting vectors same size
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmad Rezaii <[email protected]>
  • Loading branch information
arezaii committed Jan 28, 2025
1 parent 10f836c commit a2bcbff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/lib/resolution/Resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1947,6 +1947,7 @@ Resolver::issueErrorForFailedCallResolution(const uast::AstNode* astForErr,
std::vector<const uast::VarLikeDecl*> uninitializedActuals;
// could not find a most specific candidate
std::vector<ApplicabilityResult> rejected;
CHPL_ASSERT(rejected.size() == uninitializedActuals.size());
CHPL_REPORT(context, NoMatchingCandidates, astForErr, ci, rejected, uninitializedActuals);
}
} else {
Expand Down

0 comments on commit a2bcbff

Please sign in to comment.