Replace dyn_cast<>() with isa<>() when the result isn't used (NFC)

Fixed warning reported by some GCC version.
This commit is contained in:
Mehdi Amini 2020-06-03 03:09:45 +00:00
parent f9bb101d39
commit a09bb6d77b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {