aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-03-18 15:22:25 +0100
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-03-18 15:22:25 +0100
commit726f5836d85518fcf97d124ec0d4f84b6d4b7232 (patch)
treed0e3f66092adf0ea6638f4a8b0e4a7b193bd1a50 /src
parent37e84316c28662f23613896f3592260bdf358aca (diff)
Try to fix issues with macos clang, v2
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/eval.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index dc52f8db7..990e98f9a 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -709,12 +709,12 @@ std::optional<EvalState::Doc> EvalState::getDoc(Value & v)
LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
const Pos & pos,
const char * s,
- const std::string & s2,
+ const std::string_view & s2,
const Symbol & sym,
const Pos & p2,
const std::string_view & s3))
{
- throw TypeError({
+ throw TypeError(ErrorInfo {
.msg = hintfmt(s, s2, sym),
.errPos = pos,
}).addTrace(p2, s3);
@@ -724,12 +724,12 @@ LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
const Pos & pos,
const Suggestions & suggestions,
const char * s,
- const std::string & s2,
+ const std::string_view & s2,
const Symbol & sym,
const Pos & p2,
const std::string_view & s3))
{
- throw TypeError({
+ throw TypeError(ErrorInfo {
.msg = hintfmt(s, s2, sym),
.errPos = pos,
.suggestions = suggestions