[llvm] r341091 - Reverting r340807.
Andrew Kaylor via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 30 11:37:19 PDT 2018
Author: akaylor
Date: Thu Aug 30 11:37:18 2018
New Revision: 341091
URL: http://llvm.org/viewvc/llvm-project?rev=341091&view=rev
Log:
Reverting r340807.
This patch restores the old behavior of getAllocationDataForFunction in MemoryBuiltins.cpp.
Modified:
llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
Modified: llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryBuiltins.cpp?rev=341091&r1=341090&r2=341091&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryBuiltins.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryBuiltins.cpp Thu Aug 30 11:37:18 2018
@@ -150,7 +150,7 @@ getAllocationDataForFunction(const Funct
return None;
const AllocFnsTy *FnData = &Iter->second;
- if ((FnData->AllocTy & AllocTy) == 0)
+ if ((FnData->AllocTy & AllocTy) != FnData->AllocTy)
return None;
// Check function prototype.
More information about the llvm-commits
mailing list