Reverting r340807.

This patch restores the old behavior of getAllocationDataForFunction in MemoryBuiltins.cpp.

llvm-svn: 341091
This commit is contained in:
Andrew Kaylor 2018-08-30 18:37:18 +00:00
parent bdab89b228
commit d9b6b81d08
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) == 0)
if ((FnData->AllocTy & AllocTy) != FnData->AllocTy)
return None;
// Check function prototype.