lowerConstant() doesn't expect AddrSpaceCast in an input expression
which can occur if IR is compiled for a SPIR target.
This patch allows lowerConstant() to strip address space casts here if they
haven't been resolved.
Differential D43186
[AsmPrinter] Allow lowerConstant() to strip address space casts krisb on Feb 12 2018, 6:15 AM. Authored by
Details
lowerConstant() doesn't expect AddrSpaceCast in an input expression This patch allows lowerConstant() to strip address space casts here if they
Diff Detail
Event TimelineComment Actions Yes, I'm absolutely agree. Comment Actions This is too aggressive. I have D20758 to do this for noon. Otherwise it should fail for the target to do something about it |