Have cloneConstantExprWithNewAddressSpaces return nullptr when
returning initial ConstantExpr.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 7063 Build 7063: arc lint + arc unit
Event Timeline
Comment Actions
I'm not sure I see why this would crash?
test/Transforms/InferAddressSpaces/NVPTX/clone_constexpr.ll | ||
---|---|---|
3–4 | Should remove these since they are redundant with the opt argument | |
23 | Name values | |
41–43 | You should be able to remove all the metadata in the test | |
41–53 | 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.
Should remove these since they are redundant with the opt argument