diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Analysis/MallocHelper.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MallocHelper.cpp b/llvm/lib/Analysis/MallocHelper.cpp index 1a8665b6f6f..89051d17883 100644 --- a/llvm/lib/Analysis/MallocHelper.cpp +++ b/llvm/lib/Analysis/MallocHelper.cpp @@ -40,7 +40,8 @@ static bool isMallocCall(const CallInst *CI) {      return false;    // Check malloc prototype. -  // FIXME: this will be obsolete when nobuiltin attribute will exist. +  // FIXME: workaround for PR5130, this will be obsolete when a nobuiltin  +  // attribute will exist.    const FunctionType *FTy = MallocFunc->getFunctionType();    if (FTy->getNumParams() != 1)      return false;  | 

