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:
David Chisnall 2018-08-28 08:59:06 +00:00
parent f0eedbce44
commit 5e52cadf89
1 changed files with 1 additions and 1 deletions

View File

@ -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.