summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-03 22:08:19 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-03 22:08:19 +0000
commitd4cf35d77576c8de1e958937aed5445a81f6989b (patch)
treedb2c08363ca8a03d03b8df5c4e4acffd0080b233 /llvm/lib/Analysis
parentf8e5e3c072ac81a8987bc8dea86facd4b7fda9d8 (diff)
downloadbcm5719-llvm-d4cf35d77576c8de1e958937aed5445a81f6989b.tar.gz
bcm5719-llvm-d4cf35d77576c8de1e958937aed5445a81f6989b.zip
remove calls to calloc if the allocated memory is not used (it was already being done for malloc)
fix a few typos found by Chad in my previous commit llvm-svn: 156110
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/MemoryBuiltins.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp
index 347a7ea7a8b..9695ae1dec2 100644
--- a/llvm/lib/Analysis/MemoryBuiltins.cpp
+++ b/llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -182,7 +182,7 @@ Value *llvm::getMallocArraySize(CallInst *CI, const TargetData *TD,
//===----------------------------------------------------------------------===//
-// clloc Call Utility Functions.
+// calloc Call Utility Functions.
//
static bool isCallocCall(const CallInst *CI) {
@@ -197,7 +197,7 @@ static bool isCallocCall(const CallInst *CI) {
// Check malloc prototype.
// FIXME: workaround for PR5130, this will be obsolete when a nobuiltin
- // attribute will exist.
+ // attribute exists.
FunctionType *FTy = Callee->getFunctionType();
return FTy->getReturnType() == Type::getInt8PtrTy(FTy->getContext()) &&
FTy->getNumParams() == 2 &&
OpenPOWER on IntegriCloud