commit | e319d7f0e91238dd3fe2dd7b435d3dbc6c643847 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Nov 30 23:30:58 2020 +0000 |
committer | Ben Clayton <bclayton@google.com> | Mon Nov 30 23:30:58 2020 +0000 |
tree | bb25c2c886fbc3d3f7082aeba4aef64fc08e23dc | |
parent | 11c9de63aa80564c351d814b357941051dcec2d8 [diff] [blame] |
Derive all ast::Node from Castable The hand-rolled `AsBlah()`, `IsBlah()` methods will be migrated in future changes. Change-Id: I078c100b561b50018771cc38c1cac4379c393424 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34301 Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/src/ast/literal.h b/src/ast/literal.h index 2154b2b..b8c1b7c 100644 --- a/src/ast/literal.h +++ b/src/ast/literal.h
@@ -31,7 +31,7 @@ class UintLiteral; /// Base class for a literal value -class Literal : public Node { +class Literal : public Castable<Literal, Node> { public: ~Literal() override;