From 8d743ac19a1b0c15deccfb14525eaeef56b4135b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 2 Jan 2018 14:28:10 +0200 Subject: Fix few undefined behavior (ubsan) bugs --- build2/parser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/parser.cxx') diff --git a/build2/parser.cxx b/build2/parser.cxx index 48902b8..b21d51c 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -3248,7 +3248,7 @@ namespace build2 })); p = functions.try_call ( - *scope_, "builtin.concat", vector_view (a), loc); + scope_, "builtin.concat", vector_view (a), loc); } if (!p.second) @@ -3848,7 +3848,7 @@ namespace build2 // Note that we "move" args to call(). // - result_data = functions.call (*scope_, name, args, loc); + result_data = functions.call (scope_, name, args, loc); what = "function call"; } else @@ -3956,7 +3956,7 @@ namespace build2 })); p = functions.try_call ( - *scope_, "string", vector_view (&result_data, 1), loc); + scope_, "string", vector_view (&result_data, 1), loc); } if (!p.second) -- cgit v1.1