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

This commit is contained in:
Geoff Romer authored and GitHub committed 2021-11-29 17:07:50 -08:00
1 parent 3e188c8562
commit be0c1e9da6
5 files changed
+94 -2

No files matched your search

@@ -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;
}
}