Use UNREACHABLE macro for impossible cases in previous commit

Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
This commit is contained in:
Benjamin Barenblat 2015-08-02 18:30:24 -04:00
parent 9ff23da255
commit 0298b7bedd
No known key found for this signature in database
GPG key ID: 9E730149EB91C53B
2 changed files with 3 additions and 4 deletions

View file

@ -80,8 +80,7 @@ const char* GetLevelName(Level log_level) {
LVL(Error);
LVL(Critical);
case Level::Count:
ASSERT_MSG(false, "invalid log level");
return "Unknown";
UNREACHABLE();
}
#undef LVL
}