Skip to content

Commit 4726a40

Browse files
[mlir][Python] Fix 'unreferenced local variable' warning on MSVC.
Differential Revision: https://reviews.llvm.org/D91282
1 parent c1f6f30 commit 4726a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Bindings/Python/PybindUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct MlirDefaultingCaster {
8585
value = DefaultingTy{
8686
pybind11::cast<typename DefaultingTy::ReferrentTy &>(src)};
8787
return true;
88-
} catch (std::exception &e) {
88+
} catch (std::exception &) {
8989
return false;
9090
}
9191
}

0 commit comments

Comments
 (0)