From: Ian Romanick Date: Mon, 15 Mar 2010 21:31:48 +0000 (-0700) Subject: Trivial clean-ups to ast_type_specifier(int) constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c2bd09888394190e30f89ccd39177caaf0e3353;p=mesa.git Trivial clean-ups to ast_type_specifier(int) constructor --- 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]; }