Fixed crashes
This commit is contained in:
@@ -203,6 +203,9 @@ string Logger::toString(TokenKind tokenKind) {
|
||||
}
|
||||
|
||||
string Logger::toString(shared_ptr<ValueType> valueType) {
|
||||
if (valueType == nullptr)
|
||||
return "{INVALID}";
|
||||
|
||||
switch (valueType->getKind()) {
|
||||
case ValueTypeKind::NONE:
|
||||
return "NONE";
|
||||
|
||||
Reference in New Issue
Block a user