aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-02 14:28:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-02 14:28:10 +0200
commit8d743ac19a1b0c15deccfb14525eaeef56b4135b (patch)
treea6ef7627068939f3de8f09c14d06ae67c313a3ab /build2/parser.cxx
parentaed0c46abaebd54e2df3777aaabf461c877012f7 (diff)
Fix few undefined behavior (ubsan) bugs
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx6
1 files changed, 3 insertions, 3 deletions
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<value> (a), loc);
+ scope_, "builtin.concat", vector_view<value> (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<value> (&result_data, 1), loc);
+ scope_, "string", vector_view<value> (&result_data, 1), loc);
}
if (!p.second)