Commit 3f19fcc
committed
[MLIR] Fix empty optional access in DialectConversion
When both `MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS` and MLIR
multithreading are enabled, `topLevelFingerPrint` is empty but its value
is accessed. This adds a `has_value()` check before dereferencing the
optional.1 parent 51c8180 commit 3f19fcc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2766 | 2766 | | |
2767 | 2767 | | |
2768 | 2768 | | |
2769 | | - | |
| 2769 | + | |
2770 | 2770 | | |
2771 | 2771 | | |
2772 | 2772 | | |
| |||
0 commit comments