Bug 167144

Summary: Annotate FastMalloc functions with returns_nonnull attribute.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Web Template FrameworkAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, commit-queue, dbates
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Andreas Kling
Reported 2017-01-17 16:18:20 PST
We should put the returns_nonnull LLVM/GCC attribute on fastMalloc() and friends. This tells the compiler that null checking the return value is never necessary.
Attachments
Patch (2.70 KB, patch)
2017-01-17 16:22 PST, Andreas Kling
no flags
Andreas Kling
Comment 1 2017-01-17 16:22:28 PST
WebKit Commit Bot
Comment 2 2017-01-17 17:38:46 PST
Comment on attachment 299081 [details] Patch Clearing flags on attachment: 299081 Committed r210840: <http://trac.webkit.org/changeset/210840>
WebKit Commit Bot
Comment 3 2017-01-17 17:38:51 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.