diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 06:12:07 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 06:12:07 +0000 |
commit | 8129a3921e970a546c8108290dcfa10e050e71f0 (patch) | |
tree | f9a39145352d9d5a9f51e78e20b301ae80563abd /lib/VMCore | |
parent | ac66f4241d0f275a20fd960767d1631236cf0d2e (diff) | |
download | external_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.cpp | 3 |
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); |