diff --git a/src/tint/sem/info.h b/src/tint/sem/info.h index 182e5946aa..aa98ff0c92 100644 --- a/src/tint/sem/info.h +++ b/src/tint/sem/info.h @@ -79,7 +79,7 @@ class Info { template void Add(const AST* ast_node, const SemanticNodeTypeFor* sem_node) { // Check there's no semantic info already existing for the node - TINT_ASSERT(Semantic, Get(ast_node) == nullptr); + TINT_ASSERT(Semantic, map_.find(ast_node) == map_.end()); map_.emplace(ast_node, sem_node); }