[PATCH] D99310: [deref] Handle byval/byref/sret/inalloc/preallocated arguments for deref-at-point semantics

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 25 14:17:08 PDT 2021


nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/lib/IR/Value.cpp:745
+  if (auto *A = dyn_cast<Argument>(V))
+    if (Type *ArgMemTy = A->getPointeeInMemoryValueType())
+        return false;
----------------
This is probably going to warn due to unused variable. `hasPointeeInMemoryValueAttr()` is the equivalent boolean query.


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

https://reviews.llvm.org/D99310



More information about the llvm-commits mailing list