arsenm added inline comments.

================
Comment at: llvm/include/llvm/IR/IRBuilder.h:438-446
+  ConstantInt *getIntPtrSize(Value *Ptr, uint64_t Size) {
+    assert(BB && "Must have a basic block to retrieve the module!");
+
+    Module *M = BB->getParent()->getParent();
+    auto *PtrType = Ptr->getType();
+    unsigned PtrSize = M->getDataLayout().getPointerSizeInBits(
+        PtrType->getPointerAddressSpace());
----------------
This change on its own might be ok but in the context of what you are trying to 
solve it is not


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76283

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D76283: [IRBuilder]... Matt Arsenault via Phabricator via cfe-commits
    • [PATCH] D76283: [IRBui... Matt Arsenault via Phabricator via cfe-commits

Reply via email to