Have cloneConstantExprWithNewAddressSpaces return nullptr when
returning initial ConstantExpr.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'm not sure I see why this would crash?
test/Transforms/InferAddressSpaces/NVPTX/clone_constexpr.ll | ||
---|---|---|
3–4 ↗ | (On Diff #101745) | Should remove these since they are redundant with the opt argument |
23 ↗ | (On Diff #101745) | Name values |
41–43 ↗ | (On Diff #101745) | You should be able to remove all the metadata in the test |
41–53 ↗ | (On Diff #101745) | You should be able to remove all the metadata in the test |
Comment Actions
I should have written it as assert. When the replacement is done, it assume that the new value is an address space cast and asserts in llvm::ConstantExpr::getAddrSpaceCast.