diff options
author | Ian Romanick <[email protected]> | 2010-03-15 14:31:48 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-15 14:31:48 -0700 |
commit | 5c2bd09888394190e30f89ccd39177caaf0e3353 (patch) | |
tree | 7b6761d2af4402003766529399042fa5dc85cee6 | |
parent | ed85a5dd4b36f4a583fc321b6d8d49a050d48678 (diff) |
Trivial clean-ups to ast_type_specifier(int) constructor
-rw-r--r-- | ast_type.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ast_type.cpp b/ast_type.cpp index 25f28b13e2a..3bfbc647a1e 100644 --- a/ast_type.cpp +++ b/ast_type.cpp @@ -46,6 +46,8 @@ ast_type_specifier::print(void) const } ast_type_specifier::ast_type_specifier(int specifier) + : type_specifier(ast_types(specifier)), type_name(NULL), structure(NULL), + is_array(false), array_size(NULL), precision(ast_precision_high) { static const char *const names[] = { "void", @@ -102,6 +104,5 @@ ast_type_specifier::ast_type_specifier(int specifier) NULL /* ast_type_name */ }; - type_specifier = ast_types(specifier); type_name = names[specifier]; } |