Try to please clang with convoluted templates

This commit is contained in:
Guillaume Maudoux 2022-10-23 00:11:44 +02:00
parent 3cd1c3b988
commit 8bd8583bc7
2 changed files with 5 additions and 7 deletions

View file

@ -465,12 +465,6 @@ ErrorBuilder<ErrorType> & ErrorBuilder<ErrorType>::withFrame(const Env & env, co
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(
const Strings & _searchPath,

View file

@ -124,7 +124,11 @@ class ErrorBuilder
ErrorBuilder<ErrorType> & withFrame(const Env & e, const Expr & ex);
[[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));
}
};