diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-15 14:15:15 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-15 14:18:32 -0700 |
commit | 7f9d30974317a4050fb8990ce1a3eebbb190483a (patch) | |
tree | c562a07c62bc25580ca684f62c98f74aef5d5c90 /ast.h | |
parent | bbddcb3092dbb80081d9d4d183cd7b6f3804b1d8 (diff) |
Ensure that ast_type always has type_name set
For built-in types, type_name would be NULL. This ensures that
type_name is set even for the built-in types. This simplifies code in
a few places and centralizes the name setting code.
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -361,7 +361,7 @@ public: enum ast_types type_specifier; - char *type_name; + const char *type_name; ast_struct_specifier *structure; int is_array; |