[all-commits] [llvm/llvm-project] b2bdc4: [mlir][python] Fix possible use of variable use be...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Tue Oct 31 10:31:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b2bdc45580e04c86571a355b17bf406993eceebc
https://github.com/llvm/llvm-project/commit/b2bdc45580e04c86571a355b17bf406993eceebc
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2023-10-31 (Tue, 31 Oct 2023)
Changed paths:
M mlir/python/mlir/_mlir_libs/__init__.py
Log Message:
-----------
[mlir][python] Fix possible use of variable use before set
The _mlirRegisterEverything symbol may not be built by some customers. The
code here was intended to support this, but didn't properly initialize the
init_module variable.
This would break JAX with:
NameError: free variable 'init_module' referenced before assignment in enclosing scope
More information about the All-commits
mailing list