[PATCH] D118727: [MemoryBuiltins][FIX] Adjust index type size properly wrt. AS casts

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 2 11:03:37 PST 2022


nikic added inline comments.


================
Comment at: llvm/lib/Analysis/MemoryBuiltins.cpp:612
+    assert(!isa<GEPOperator>(CE) &&
+           "Constant GEPs should have been stripped already");
   }
----------------
Constant GEPs can have constant expression offsets, which will not be stripped.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118727



More information about the llvm-commits mailing list