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.