diff options
Diffstat (limited to 'src/dataflow/graph.h')
-rw-r--r-- | src/dataflow/graph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dataflow/graph.h b/src/dataflow/graph.h index 5c01714f5..a243b0fff 100644 --- a/src/dataflow/graph.h +++ b/src/dataflow/graph.h @@ -169,7 +169,7 @@ struct Graph : public UnifiedExpressionVisitor<Graph, Node*> { assert(!node->isBad()); Builder builder(*module); auto type = node->getWasmType(); - if (!isConcreteType(type)) { + if (!type.isConcrete()) { return &bad; } auto* zero = makeZero(type); @@ -397,7 +397,7 @@ struct Graph : public UnifiedExpressionVisitor<Graph, Node*> { if (!isRelevantLocal(curr->index) || isInUnreachable()) { return &bad; } - assert(isConcreteType(curr->value->type)); + assert(curr->value->type.isConcrete()); sets.push_back(curr); expressionParentMap[curr] = parent; expressionParentMap[curr->value] = curr; @@ -603,7 +603,7 @@ struct Graph : public UnifiedExpressionVisitor<Graph, Node*> { // Helpers. - bool isRelevantType(wasm::Type type) { return isIntegerType(type); } + bool isRelevantType(wasm::Type type) { return type.isInteger(); } bool isRelevantLocal(Index index) { return isRelevantType(func->getLocalType(index)); |