We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 988225f commit b380ddbCopy full SHA for b380ddb
src/lib/Support/Error.cpp
@@ -252,11 +252,10 @@ call_impl(
252
{
253
llvm::raw_string_ostream os(s);
254
f(os);
255
+ using LT = std::underlying_type_t<Level>;
256
if(sourceLocationWarnings_ &&
- loc && (
257
- level == Level::warn ||
258
- level == Level::error ||
259
- level == Level::fatal))
+ loc &&
+ static_cast<LT>(level) >= static_cast<LT>(Level::error))
260
261
os << "\n\n";
262
os << "An issue occurred during execution.\n";
0 commit comments