[mlir][Python] Fix 'unreferenced local variable' warning on MSVC.

Differential Revision: https://reviews.llvm.org/D91282
This commit is contained in:
Stella Laurenzo 2020-11-11 10:02:32 -08:00
parent c1f6f30040
commit 4726a402a3
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ struct MlirDefaultingCaster {
value = DefaultingTy{
pybind11::cast<typename DefaultingTy::ReferrentTy &>(src)};
return true;
} catch (std::exception &e) {
} catch (std::exception &) {
return false;
}
}