[PATCH] D104309: [OpaquePtr] Verify Opaque pointer in function parameter
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 14:09:30 PDT 2021
aeubanks added inline comments.
================
Comment at: llvm/lib/IR/Verifier.cpp:1869
if (Attrs.hasAttribute(Attribute::Preallocated)) {
- Assert(Attrs.getPreallocatedType() == PTy->getElementType(),
- "Attribute 'preallocated' type does not match parameter!", V);
----------------
we still should keep this check that for non-opaque pointers, the element type matches the attribute type, I only meant to make the check for sized common between opaque and non-opaque pointers (and we should keep all the tests that were deleted)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104309/new/
https://reviews.llvm.org/D104309
More information about the llvm-commits
mailing list