forked from OSchip/llvm-project
[mlir][Python] Fix 'unreferenced local variable' warning on MSVC.
Differential Revision: https://reviews.llvm.org/D91282
This commit is contained in:
parent
c1f6f30040
commit
4726a402a3
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue