Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Reported issue: Passing `-debug-only=` doesn't work correctly, causes printout of MLIR lowering steps. ### Issue identified: `-debug-only=` uses an internal object called `CurrentDebugType` to store all the debug string, e.g., given `-debug-only=foo`, then `foo` is stored in `CurrentDebugType`. If `CurrentDebugType` is empty, then it behaves like `-debug`. `InitLLVM` calls llvm_shutdown() on destruction, which cleans up ManagedStatic objects, including `CurrentDebugType`. `InitLLVM` should be created at the scope of `main`. ### Propose solution: Remove the internal scope. Signed-off-by: Tsang, Whitney <whitney.tsang@intel.com>
- Loading branch information