For byval arguments, the number of dereferenceable bytes is equal to
the size of the pointee, not the pointer.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 13179 Build 13179: arc lint + arc unit
Paths
| Differential D41305
Properly handle byval arguments in getPointerDereferenceableBytes() ClosedPublic Authored by dotdash on Dec 15 2017, 12:07 PM.
Details Summary For byval arguments, the number of dereferenceable bytes is equal to
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 15 2017, 12:36 PM Closed by commit rL320939: Properly handle byval arguments in getPointerDereferenceableBytes() (authored by bsteinbr). · Explain WhyDec 16 2017, 6:38 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 127174 lib/IR/Value.cpp
test/Analysis/ValueTracking/memory-dereferenceable.ll
|
The verifier checks isSized(); you don't need to check it here.