diff --git a/src/tint/resolver/intrinsic_table.cc b/src/tint/resolver/intrinsic_table.cc index 0cd18e8ead..7c58444216 100644 --- a/src/tint/resolver/intrinsic_table.cc +++ b/src/tint/resolver/intrinsic_table.cc @@ -1143,7 +1143,7 @@ class Impl : public IntrinsicTable { utils::VectorRef args, sem::EvaluationStage earliest_eval_stage, TemplateState templates, - OnNoMatch on_no_match) const; + const OnNoMatch& on_no_match) const; /// Evaluates the single overload for the provided argument types. /// @param overload the overload being considered @@ -1505,7 +1505,7 @@ IntrinsicPrototype Impl::MatchIntrinsic(const IntrinsicInfo& intrinsic, utils::VectorRef args, sem::EvaluationStage earliest_eval_stage, TemplateState templates, - OnNoMatch on_no_match) const { + const OnNoMatch& on_no_match) const { size_t num_matched = 0; size_t match_idx = 0; utils::Vector candidates;