aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-09 06:12:07 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-09 06:12:07 +0000
commit8129a3921e970a546c8108290dcfa10e050e71f0 (patch)
treef9a39145352d9d5a9f51e78e20b301ae80563abd /lib/VMCore
parentac66f4241d0f275a20fd960767d1631236cf0d2e (diff)
downloadexternal_llvm-8129a3921e970a546c8108290dcfa10e050e71f0.zip
external_llvm-8129a3921e970a546c8108290dcfa10e050e71f0.tar.gz
external_llvm-8129a3921e970a546c8108290dcfa10e050e71f0.tar.bz2
For PR1146:
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Module.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index 8aab595..016ab16 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -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);