summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MallocHelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Analysis/MallocHelper.cpp')
-rw-r--r--llvm/lib/Analysis/MallocHelper.cpp3
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;
OpenPOWER on IntegriCloud