[PATCH] D50959: Fix in getAllocationDataForFunction

David Chisnall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 28 02:00:10 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL340807: Fix in getAllocationDataForFunction (authored by theraven, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D50959?vs=161438&id=162811#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50959

Files:
  llvm/trunk/lib/Analysis/MemoryBuiltins.cpp


Index: llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
===================================================================
--- llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
+++ llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
@@ -150,7 +150,7 @@
     return None;
 
   const AllocFnsTy *FnData = &Iter->second;
-  if ((FnData->AllocTy & AllocTy) != FnData->AllocTy)
+  if ((FnData->AllocTy & AllocTy) == 0)
     return None;
 
   // Check function prototype.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50959.162811.patch
Type: text/x-patch
Size: 445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180828/e69d35a9/attachment.bin>


More information about the llvm-commits mailing list