aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-12-22 12:01:41 +0000
committergingerBill <bill@gingerbill.org>2022-12-22 12:01:41 +0000
commit9b278db9934913367a8e186b9c6aa9c03017f3d4 (patch)
tree04380830523707263d399cce9152ea03174266ef /src/parser.hpp
parente98f1a28e68e82753728f58b3465793192b74f9d (diff)
Revert "Change `tav` to be a pointer internally"
This reverts commit e98f1a28e68e82753728f58b3465793192b74f9d.
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index e3d6b42d8..7d292ffce 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -754,7 +754,7 @@ struct AstCommonStuff {
u8 state_flags;
u8 viral_state_flags;
i32 file_id;
- TypeAndValue *tav_; // TODO(bill): Make this a pointer to minimize 'Ast' size
+ TypeAndValue tav; // TODO(bill): Make this a pointer to minimize 'Ast' size
};
struct Ast {
@@ -762,7 +762,7 @@ struct Ast {
u8 state_flags;
u8 viral_state_flags;
i32 file_id;
- TypeAndValue *tav_; // TODO(bill): Make this a pointer to minimize 'Ast' size
+ TypeAndValue tav; // TODO(bill): Make this a pointer to minimize 'Ast' size
// IMPORTANT NOTE(bill): This must be at the end since the AST is allocated to be size of the variant
union {
@@ -771,9 +771,6 @@ struct Ast {
#undef AST_KIND
};
- gb_inline TypeAndValue &tav() const {
- return *this->tav_;
- }
// NOTE(bill): I know I dislike methods but this is hopefully a temporary thing
// for refactoring purposes