Commit c422881
authored
[SelectionDAGBuilder] Use address width when lowering ptrtoaddr
Instead of just deferring to ptrtoint, we should truncate to the index
width and then perform the ZextOrTrunc.
This is effectively NFC since ptrtoint ends up doing the same thing, but
handling it explicitly is cleaner and will make it easier to eventually
upstream the changes needed for CHERI support.
Reviewed By: nikic, arsenm
Pull Request: llvm#1394231 parent dc4cef8 commit c422881
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3971 | 3971 | | |
3972 | 3972 | | |
3973 | 3973 | | |
3974 | | - | |
3975 | | - | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
3976 | 3982 | | |
3977 | 3983 | | |
3978 | 3984 | | |
| |||
0 commit comments