Skip to content

Commit 2d128b0

Browse files
committed
[NFC] Fix build warnings
1 parent b5a3b90 commit 2d128b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/lib/Conversion/ShapeToStandard/ConvertShapeConstraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ namespace {
124124
// `shape.const_witness true`.
125125
class ConvertShapeConstraints
126126
: public ConvertShapeConstraintsBase<ConvertShapeConstraints> {
127-
void runOnOperation() {
127+
void runOnOperation() override {
128128
auto func = getOperation();
129129
auto *context = &getContext();
130130

mlir/tools/mlir-tblgen/OpFormatGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ static void genCustomDirectiveParser(CustomDirective *dir, OpMethodBody &body) {
952952
body << llvm::formatv(" if ({0}Operand.hasValue())\n"
953953
" {0}Operands.push_back(*{0}Operand);\n",
954954
var->name);
955-
} else if (auto *dir = dyn_cast<TypeRefDirective>(&param)) {
955+
} else if (isa<TypeRefDirective>(&param)) {
956956
// In the `type_ref` case, do not parse a new Type that needs to be added.
957957
// Just do nothing here.
958958
} else if (auto *dir = dyn_cast<TypeDirective>(&param)) {

0 commit comments

Comments
 (0)