forked from lix-project/lix
Try to fix issues with macos clang, v2
This commit is contained in:
parent
37e84316c2
commit
726f5836d8
|
@ -709,12 +709,12 @@ std::optional<EvalState::Doc> EvalState::getDoc(Value & v)
|
||||||
LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
|
LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
|
||||||
const Pos & pos,
|
const Pos & pos,
|
||||||
const char * s,
|
const char * s,
|
||||||
const std::string & s2,
|
const std::string_view & s2,
|
||||||
const Symbol & sym,
|
const Symbol & sym,
|
||||||
const Pos & p2,
|
const Pos & p2,
|
||||||
const std::string_view & s3))
|
const std::string_view & s3))
|
||||||
{
|
{
|
||||||
throw TypeError({
|
throw TypeError(ErrorInfo {
|
||||||
.msg = hintfmt(s, s2, sym),
|
.msg = hintfmt(s, s2, sym),
|
||||||
.errPos = pos,
|
.errPos = pos,
|
||||||
}).addTrace(p2, s3);
|
}).addTrace(p2, s3);
|
||||||
|
@ -724,12 +724,12 @@ LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
|
||||||
const Pos & pos,
|
const Pos & pos,
|
||||||
const Suggestions & suggestions,
|
const Suggestions & suggestions,
|
||||||
const char * s,
|
const char * s,
|
||||||
const std::string & s2,
|
const std::string_view & s2,
|
||||||
const Symbol & sym,
|
const Symbol & sym,
|
||||||
const Pos & p2,
|
const Pos & p2,
|
||||||
const std::string_view & s3))
|
const std::string_view & s3))
|
||||||
{
|
{
|
||||||
throw TypeError({
|
throw TypeError(ErrorInfo {
|
||||||
.msg = hintfmt(s, s2, sym),
|
.msg = hintfmt(s, s2, sym),
|
||||||
.errPos = pos,
|
.errPos = pos,
|
||||||
.suggestions = suggestions
|
.suggestions = suggestions
|
||||||
|
|
Loading…
Reference in a new issue