[PATCH] D41305: Properly handle byval arguments in getPointerDereferenceableBytes()

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 12:15:21 PST 2017


efriedma added inline comments.


================
Comment at: lib/IR/Value.cpp:632
+      Type *PT = cast<PointerType>(A->getType())->getElementType();
+      if (PT->isSized()) {
+        DerefBytes = DL.getTypeStoreSize(PT);
----------------
The verifier checks isSized(); you don't need to check it here.


https://reviews.llvm.org/D41305





More information about the llvm-commits mailing list