[NFC] Fix build warnings

This commit is contained in:
Rahul Joshi 2020-09-25 09:35:41 -07:00
parent b5a3b901c7
commit 2d128b04d9
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ namespace {
// `shape.const_witness true`.
class ConvertShapeConstraints
: public ConvertShapeConstraintsBase<ConvertShapeConstraints> {
void runOnOperation() {
void runOnOperation() override {
auto func = getOperation();
auto *context = &getContext();

View File

@ -952,7 +952,7 @@ static void genCustomDirectiveParser(CustomDirective *dir, OpMethodBody &body) {
body << llvm::formatv(" if ({0}Operand.hasValue())\n"
" {0}Operands.push_back(*{0}Operand);\n",
var->name);
} else if (auto *dir = dyn_cast<TypeRefDirective>(&param)) {
} else if (isa<TypeRefDirective>(&param)) {
// In the `type_ref` case, do not parse a new Type that needs to be added.
// Just do nothing here.
} else if (auto *dir = dyn_cast<TypeDirective>(&param)) {