[llvm-commits] [llvm] r157555 - /llvm/trunk/lib/VMCore/Module.cpp
Chris Lattner
sabre at nondot.org
Sun May 27 18:37:09 PDT 2012
Author: lattner
Date: Sun May 27 20:37:08 2012
New Revision: 157555
URL: http://llvm.org/viewvc/llvm-project?rev=157555&view=rev
Log:
simplify code.
Modified:
llvm/trunk/lib/VMCore/Module.cpp
Modified: llvm/trunk/lib/VMCore/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Module.cpp?rev=157555&r1=157554&r2=157555&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Module.cpp (original)
+++ llvm/trunk/lib/VMCore/Module.cpp Sun May 27 20:37:08 2012
@@ -188,8 +188,7 @@
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 @@
// 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.
More information about the llvm-commits
mailing list