Recommitting r275284: add support to inline __builtin_mempcpy
Patch by Sunita Marathe Third try, now following fixes to MSan to handle mempcy in such a way that this commit won't break the MSan buildbots. (Thanks, Evegenii!) llvm-svn: 277189
This commit is contained in:
@@ -644,6 +644,7 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy,
|
||||
return false;
|
||||
// fallthrough
|
||||
case LibFunc::memcpy:
|
||||
case LibFunc::mempcpy:
|
||||
case LibFunc::memmove:
|
||||
return (NumParams == 3 && FTy.getReturnType() == FTy.getParamType(0) &&
|
||||
FTy.getParamType(0)->isPointerTy() &&
|
||||
|
||||
Reference in New Issue
Block a user