Commit 392cc84
committed
[mlir][LLVMIR target] Fix llvm.freeze builder to prevent crashes
The freeze builder did not assign the result of creating the freeze
operation to $res, which meant that when subsequent translations (such
as a sext) tried to use that result or query its type, mlir-translate
would crash.
This fixes the issue and adds a test for it.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D1395741 parent f39b472 commit 392cc84
File tree
2 files changed
+11
-1
lines changed- mlir
- include/mlir/Dialect/LLVMIR
- test/Target/LLVMIR
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1501 | 1501 | | |
1502 | 1502 | | |
1503 | 1503 | | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
1504 | 1514 | | |
1505 | 1515 | | |
1506 | 1516 | | |
| |||
0 commit comments