Have cloneConstantExprWithNewAddressSpaces return nullptr when
returning initial ConstantExpr.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 7069 Build 7069: 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 | ||
---|---|---|
4–5 | Should remove these since they are redundant with the opt argument | |
24 | Name values | |
42–44 | You should be able to remove all the metadata in the test | |
42–54 | 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