forked from OSchip/llvm-project
Fix in getAllocationDataForFunction
Summary: Correct to use set like behaviour of AllocType. Should check for subset, not precise value. Reviewers: theraven Reviewed By: theraven Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D50959 llvm-svn: 340807
This commit is contained in:
parent
f0eedbce44
commit
5e52cadf89
|
@ -150,7 +150,7 @@ getAllocationDataForFunction(const Function *Callee, AllocType AllocTy,
|
|||
return None;
|
||||
|
||||
const AllocFnsTy *FnData = &Iter->second;
|
||||
if ((FnData->AllocTy & AllocTy) != FnData->AllocTy)
|
||||
if ((FnData->AllocTy & AllocTy) == 0)
|
||||
return None;
|
||||
|
||||
// Check function prototype.
|
||||
|
|
Loading…
Reference in New Issue