[PATCH] D33995: InferAddressSpaces: Avoid crash with replacing identical cloned constexpr

Nirav Dave via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 10:26:01 PDT 2017


niravd marked 4 inline comments as done.
niravd added a comment.

In https://reviews.llvm.org/D33995#775210, @arsenm wrote:

> I'm not sure I see why this would crash?


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.


https://reviews.llvm.org/D33995





More information about the llvm-commits mailing list