summaryrefslogtreecommitdiff
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-05-28 01:37:08 +0000
committerChris Lattner <sabre@nondot.org>2012-05-28 01:37:08 +0000
commit2a9d3b79db1f192dba43b8b16755a7822b05f798 (patch)
treeae01b0a86aada14f4ef4f9250ff328523fe7ba3b /lib/VMCore/Module.cpp
parent2edc74aa1fb541253f4286a70194960dab69506b (diff)
downloadllvm-2a9d3b79db1f192dba43b8b16755a7822b05f798.tar.gz
llvm-2a9d3b79db1f192dba43b8b16755a7822b05f798.tar.bz2
llvm-2a9d3b79db1f192dba43b8b16755a7822b05f798.tar.xz
simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r--lib/VMCore/Module.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index b872ccee14..8ea36659b8 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -188,8 +188,7 @@ Constant *Module::getOrInsertTargetIntrinsic(StringRef Name,
Constant *Module::getOrInsertFunction(StringRef Name,
FunctionType *Ty) {
- AttrListPtr AttributeList = AttrListPtr::get((AttributeWithIndex *)0, 0);
- return getOrInsertFunction(Name, Ty, AttributeList);
+ return getOrInsertFunction(Name, Ty, AttrListPtr());
}
// getOrInsertFunction - Look up the specified function in the module symbol
@@ -231,7 +230,7 @@ Constant *Module::getOrInsertFunction(StringRef Name,
// Build the function type and chain to the other getOrInsertFunction...
return getOrInsertFunction(Name,
FunctionType::get(RetTy, ArgTys, false),
- AttrListPtr::get((AttributeWithIndex *)0, 0));
+ AttrListPtr());
}
// getFunction - Look up the specified function in the module symbol table.