diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-23 17:42:04 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-23 17:42:04 -0700 |
commit | 882dad75408fc4071a9dd700309f9e54f6ad2650 (patch) | |
tree | 17f121512b52bfcbeaf4f4158fb50514f039aa6c /ast_to_hir.cpp | |
parent | bb7e00a1cd63f3012226253bb0121922419a5f23 (diff) |
ir_function constructor now takes the function name as a parameter
Diffstat (limited to 'ast_to_hir.cpp')
-rw-r--r-- | ast_to_hir.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index ace80718d5..f7c82fab4b 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -1095,9 +1095,7 @@ ast_function_definition::hir(exec_list *instructions, "non-function", name); signature = NULL; } else { - f = new ir_function(); - f->name = name; - + f = new ir_function(name); state->symbols->add_function(f->name, f); } |