[Mlir-commits] [mlir] 4726a40 - [mlir][Python] Fix 'unreferenced local variable' warning on MSVC.
Stella Laurenzo
llvmlistbot at llvm.org
Thu Nov 12 13:35:17 PST 2020
Author: Stella Laurenzo
Date: 2020-11-12T13:34:57-08:00
New Revision: 4726a402a32a0553cf4da8c59646d8bc99c08383
URL: https://github.com/llvm/llvm-project/commit/4726a402a32a0553cf4da8c59646d8bc99c08383
DIFF: https://github.com/llvm/llvm-project/commit/4726a402a32a0553cf4da8c59646d8bc99c08383.diff
LOG: [mlir][Python] Fix 'unreferenced local variable' warning on MSVC.
Differential Revision: https://reviews.llvm.org/D91282
Added:
Modified:
mlir/lib/Bindings/Python/PybindUtils.h
Removed:
################################################################################
diff --git a/mlir/lib/Bindings/Python/PybindUtils.h b/mlir/lib/Bindings/Python/PybindUtils.h
index 3b24d6d962a0..25cbba282129 100644
--- a/mlir/lib/Bindings/Python/PybindUtils.h
+++ b/mlir/lib/Bindings/Python/PybindUtils.h
@@ -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;
}
}
More information about the Mlir-commits
mailing list