summaryrefslogtreecommitdiff
path: root/src/wasm-traversal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-traversal.h')
-rw-r--r--src/wasm-traversal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h
index b70c17154..9573bc21a 100644
--- a/src/wasm-traversal.h
+++ b/src/wasm-traversal.h
@@ -280,7 +280,7 @@ struct Walker : public VisitorType {
// nested.
// Tasks receive the this pointer and a pointer to the pointer to operate on
- typedef void (*TaskFunc)(SubType*, Expression**);
+ using TaskFunc = void (*)(SubType*, Expression**);
struct Task {
TaskFunc func;
@@ -381,7 +381,7 @@ struct PostWalker : public Walker<SubType, VisitorType> {
// Stacks of expressions tend to be limited in size (although, sometimes
// super-nested blocks exist for br_table).
-typedef SmallVector<Expression*, 10> ExpressionStack;
+using ExpressionStack = SmallVector<Expression*, 10>;
// Traversal with a control-flow stack.