summaryrefslogtreecommitdiff
path: root/src/dataflow/graph.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-11-15 10:02:27 -0800
committerGitHub <noreply@github.com>2022-11-15 18:02:27 +0000
commit59cbdd818dc3397a823a37e9821fd32f4522b2fc (patch)
tree58470bfc11591d2e70f1b79645061c1a23beb75d /src/dataflow/graph.h
parent236f12f7df64f10e1238bf2d66b1216f700b15df (diff)
downloadbinaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.tar.gz
binaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.tar.bz2
binaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.zip
Switch from `typedef` to `using` in C++ code. NFC (#5258)
This is more modern and (IMHO) easier to read than that old C typedef syntax.
Diffstat (limited to 'src/dataflow/graph.h')
-rw-r--r--src/dataflow/graph.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dataflow/graph.h b/src/dataflow/graph.h
index 0380adf14..6bd01d895 100644
--- a/src/dataflow/graph.h
+++ b/src/dataflow/graph.h
@@ -84,7 +84,7 @@ struct Graph : public UnifiedExpressionVisitor<Graph, Node*> {
// When we are in unreachable code (i.e., a path that does not
// need to be merged in anywhere), we set the length of this
// vector to 0 to indicate that.
- typedef std::vector<Node*> Locals;
+ using Locals = std::vector<Node*>;
// The current local state in the control flow path being emitted.
Locals locals;