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 ae75929 commit c6bfbc5Copy full SHA for c6bfbc5
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
@@ -89,10 +89,7 @@ static ParameterElement *getEncapsulatedParameterElement(FormatElement *el) {
89
.Case<ParameterElement>([&](auto param) { return param; })
90
.Case<RefDirective>(
91
[&](auto ref) { return cast<ParameterElement>(ref->getArg()); })
92
- .Default([&](auto el) {
93
- assert(false && "unexpected struct element type");
94
- return nullptr;
95
- });
+ .DefaultUnreachable("unexpected struct element type");
96
}
97
98
/// Shorthand functions that can be used with ranged-based conditions.
0 commit comments