forked from lix-project/lix
Try to please clang with convoluted templates
This commit is contained in:
parent
3cd1c3b988
commit
8bd8583bc7
|
@ -465,12 +465,6 @@ ErrorBuilder<ErrorType> & ErrorBuilder<ErrorType>::withFrame(const Env & env, co
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class ErrorType>
|
|
||||||
void ErrorBuilder<ErrorType>::debugThrow() {
|
|
||||||
// NOTE: We always use the -LastTrace version as we push the new trace in withFrame()
|
|
||||||
state.debugThrowLastTrace(ErrorType(info));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
EvalState::EvalState(
|
EvalState::EvalState(
|
||||||
const Strings & _searchPath,
|
const Strings & _searchPath,
|
||||||
|
|
|
@ -124,7 +124,11 @@ class ErrorBuilder
|
||||||
ErrorBuilder<ErrorType> & withFrame(const Env & e, const Expr & ex);
|
ErrorBuilder<ErrorType> & withFrame(const Env & e, const Expr & ex);
|
||||||
|
|
||||||
[[gnu::noinline, gnu::noreturn]]
|
[[gnu::noinline, gnu::noreturn]]
|
||||||
void debugThrow();
|
void ErrorBuilder<ErrorType>::debugThrow() {
|
||||||
|
// NOTE: We always use the -LastTrace version as we push the new trace in withFrame()
|
||||||
|
state.debugThrowLastTrace(ErrorType(info));
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue