forked from OSchip/llvm-project
[NFC] Fix build warnings
This commit is contained in:
parent
b5a3b901c7
commit
2d128b04d9
|
@ -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();
|
||||
|
||||
|
|
|
@ -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>(¶m)) {
|
||||
} else if (isa<TypeRefDirective>(¶m)) {
|
||||
// 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>(¶m)) {
|
||||
|
|
Loading…
Reference in New Issue