summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-15 14:15:15 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-15 14:18:32 -0700
commit7f9d30974317a4050fb8990ce1a3eebbb190483a (patch)
treec562a07c62bc25580ca684f62c98f74aef5d5c90 /ast.h
parentbbddcb3092dbb80081d9d4d183cd7b6f3804b1d8 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.h b/ast.h
index d82325747c..32cd5b6b4f 100644
--- a/ast.h
+++ b/ast.h
@@ -361,7 +361,7 @@ public:
enum ast_types type_specifier;
- char *type_name;
+ const char *type_name;
ast_struct_specifier *structure;
int is_array;