For PR1146:
authorReid Spencer <rspencer@reidspencer.com>
Mon, 9 Apr 2007 06:12:07 +0000 (06:12 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 9 Apr 2007 06:12:07 +0000 (06:12 +0000)
Simplify construction of FunctionType to use default arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35810 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Module.cpp

index 8aab595bd2b09d2d4d2067a1c2afea3799d1f2cd..016ab16ff5211c295d505ae9e11a6628eb391c21 100644 (file)
@@ -32,8 +32,7 @@ using namespace llvm;
 
 Function *ilist_traits<Function>::createSentinel() {
   FunctionType *FTy =
-    FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false, 
-                      std::vector<FunctionType::ParameterAttributes>() );
+    FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false);
   Function *Ret = new Function(FTy, GlobalValue::ExternalLinkage);
   // This should not be garbage monitored.
   LeakDetector::removeGarbageObject(Ret);