Move value-category checking to compile time (#960)

This commit is contained in:
Geoff Romer
2021-11-29 17:07:50 -08:00
committed by GitHub
parent 3e188c8562
commit be0c1e9da6
5 changed files with 94 additions and 2 deletions
@@ -357,8 +357,7 @@ void Interpreter::StepLvalue() {
case ExpressionKind::StringLiteral:
case ExpressionKind::StringTypeLiteral:
case ExpressionKind::IntrinsicExpression:
FATAL_RUNTIME_ERROR_NO_LINE()
<< "Can't treat expression as lvalue: " << exp;
FATAL() << "Can't treat expression as lvalue: " << exp;
}
}