[all-commits] [llvm/llvm-project] 6b0ff0: Extract utility function for checking initial valu...
Philip Reames via All-commits
all-commits at lists.llvm.org
Fri Jan 7 08:44:27 PST 2022
Author: Philip Reames <listmail at philipreames.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Extract utility function for checking initial value of allocation [NFC, try 2]
This is a reoccuring pattern, we can consolidate three copies into one. The main motivation is to reduce usages of isMallocLike.
The original commit (which was quickly reverted) didn't account for the allocation function could be an invoke, test coverage for that case added in this commit.
More information about the All-commits