Remove constexpr.

This commit is contained in:
chriseth 2021-12-20 17:29:44 +01:00
parent 08abab1373
commit c374d27eec

View File

@ -72,7 +72,7 @@ optional<LineColumn> parseLineColumn(Json::Value const& _lineColumn)
return nullopt; return nullopt;
} }
constexpr int toDiagnosticSeverity(Error::Type _errorType) int toDiagnosticSeverity(Error::Type _errorType)
{ {
// 1=Error, 2=Warning, 3=Info, 4=Hint // 1=Error, 2=Warning, 3=Info, 4=Hint
switch (Error::errorSeverity(_errorType)) switch (Error::errorSeverity(_errorType))