diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-05-28 01:37:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-05-28 01:37:08 +0000 |
| commit | 5be972d8a2095c92e7de4e8f61b02a20439b2461 (patch) | |
| tree | 3956d5797a40f7b79204806b4740088c25c4d30e /llvm/lib | |
| parent | 9a49ffdb47e38fba6b5455482a6f7439140da365 (diff) | |
| download | bcm5719-llvm-5be972d8a2095c92e7de4e8f61b02a20439b2461.tar.gz bcm5719-llvm-5be972d8a2095c92e7de4e8f61b02a20439b2461.zip | |
simplify code.
llvm-svn: 157555
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Module.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp index b872ccee14c..8ea36659b88 100644 --- a/llvm/lib/VMCore/Module.cpp +++ b/llvm/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. |

