[PATCH] D129561: [RS4GC] Fix over-restrictive assert in atomic memcpy/move handling

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 15:02:37 PDT 2022


apilipenko added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp:1705
       auto GetBaseAndOffset = [&](Value *Derived) {
-        assert(PointerToBase.count(Derived));
         unsigned AddressSpace = Derived->getType()->getPointerAddressSpace();
----------------
I suggest handling the undef case explicitly. Just return undef if the input is undef. 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129561/new/

https://reviews.llvm.org/D129561



More information about the llvm-commits mailing list