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/function.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/function.cxx') diff --git a/build2/function.cxx b/build2/function.cxx index 4421c86..e71f158 100644 --- a/build2/function.cxx +++ b/build2/function.cxx @@ -97,7 +97,7 @@ namespace build2 } pair function_map:: - call (const scope& base, + call (const scope* base, const string& name, vector_view args, const location& loc, @@ -255,7 +255,7 @@ namespace build2 } value function_family:: - default_thunk (const scope& base, + default_thunk (const scope* base, vector_view args, const function_overload& f) try @@ -264,7 +264,7 @@ namespace build2 // struct cast_data // Prefix of function_cast::data. { - value (*const thunk) (const scope&, vector_view, const void*); + value (*const thunk) (const scope*, vector_view, const void*); }; auto d (reinterpret_cast (&f.data)); -- cgit v1.1