assert for invalid fileorigin

This commit is contained in:
Ben Burdette 2020-07-02 07:14:40 -06:00
parent 8497891b99
commit 5ae498872a

View file

@ -584,7 +584,7 @@ Expr * EvalState::parse(const char * text, FileOrigin origin,
data.file = data.symbols.create(text);
break;
default:
throw Error("invalid FileOrigin in parse");
assert(false);
}
data.basePath = basePath;