summaryrefslogtreecommitdiff
path: root/src/ir/cost.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r--src/ir/cost.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h
index 60eb84b08..79be195f7 100644
--- a/src/ir/cost.h
+++ b/src/ir/cost.h
@@ -188,7 +188,7 @@ struct CostAnalyzer : public Visitor<CostAnalyzer, Index> {
case WidenHighUVecI16x8ToVecI32x4:
return 1;
case InvalidUnary:
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("invalid unary op");
}
return ret + visit(curr->value);
}
@@ -709,7 +709,7 @@ struct CostAnalyzer : public Visitor<CostAnalyzer, Index> {
ret = 1;
break;
case InvalidBinary:
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("invalid binary op");
}
return ret + visit(curr->left) + visit(curr->right);
}