mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
Try to please clang with convoluted templates
This commit is contained in:
parent
3cd1c3b988
commit
8bd8583bc7
2 changed files with 5 additions and 7 deletions
|
@ -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