summaryrefslogtreecommitdiffstats
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-03-08 23:44:00 -0800
committerIan Romanick <[email protected]>2010-03-08 23:44:54 -0800
commit0044e7edcea22d2456c051a1c4b744a26960ad27 (patch)
treee284a1d792f4027d563aca5ee2e94459b08e6d4d /glsl_parser_extras.cpp
parent7e4ce719238e910043325567e941e4ea9a953264 (diff)
Conver IR structures to use exec_list instead of simple_node
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index 602f2cc5b21..a166fbcd09f 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -681,7 +681,7 @@ main(int argc, char **argv)
char *shader;
size_t shader_len;
struct simple_node *ptr;
- struct simple_node instructions;
+ exec_list instructions;
(void) argc;
shader = load_text_file(argv[1], & shader_len);
@@ -698,7 +698,6 @@ main(int argc, char **argv)
((ast_node *)ptr)->print();
}
- make_empty_list(& instructions);
foreach (ptr, & state.translation_unit) {
((ast_node *)ptr)->hir(&instructions, &state);
}