Reverting r340807.
This patch restores the old behavior of getAllocationDataForFunction in MemoryBuiltins.cpp. llvm-svn: 341091
This commit is contained in:
parent
bdab89b228
commit
d9b6b81d08
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue