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 | e76289b8eacea3a13ba5bfc29c562f16ee947e3e (patch) | |
| tree | ef7fdbdf36f7f668337775f0abe30985f6569a8d /llvm/lib/VMCore | |
| parent | 26d9ff65a33671e2be3d06fcf0f725738d54412d (diff) | |
| download | bcm5719-llvm-e76289b8eacea3a13ba5bfc29c562f16ee947e3e.tar.gz bcm5719-llvm-e76289b8eacea3a13ba5bfc29c562f16ee947e3e.zip | |
For PR1146:
Simplify construction of FunctionType to use default arguments.
llvm-svn: 35810
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/Module.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp index 8aab595bd2b..016ab16ff52 100644 --- a/llvm/lib/VMCore/Module.cpp +++ b/llvm/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); |

