Skip to content

Commit

Permalink
Replace dyn_cast<>() with isa<>() when the result isn't used (NFC)
Browse files Browse the repository at this point in the history
Fixed warning reported by some GCC version.
  • Loading branch information
joker-eph committed Jun 3, 2020
1 parent f9bb101 commit a09bb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/TableGen/Operator.cpp
Expand Up @@ -315,7 +315,7 @@ void tblgen::Operator::populateTypeInferenceInfo(
continue;
}

if (auto *attr = getArg(*mi).dyn_cast<NamedAttribute *>()) {
if (getArg(*mi).isa<NamedAttribute *>()) {
// TODO: Handle attributes.
continue;
} else {
Expand Down

0 comments on commit a09bb6d

Please sign in to comment.