diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-31 16:37:10 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-31 16:37:10 -0700 |
commit | 6a15d5b514b703ff8dd024f96ffbcb68484a954e (patch) | |
tree | 8d04a22f27cfbff9a8340ab5d5b2836fe965a107 /ast_to_hir.cpp | |
parent | 4ef183e51de2b625b51cdd6c925760429801595e (diff) |
Use ir_function::add_signature to create link between function and signature
ir_function_signature now has a pointer back to the ir_function that owns it.
Diffstat (limited to 'ast_to_hir.cpp')
-rw-r--r-- | ast_to_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index 5341dd59ce..78c92822e3 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -1530,7 +1530,7 @@ ast_function_definition::hir(exec_list *instructions, */ if (signature == NULL) { signature = new ir_function_signature(return_type); - f->signatures.push_tail(signature); + f->add_signature(signature); } else { /* Destroy all of the previous parameter information. The previous * parameter information comes from the function prototype, and it can |