mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-22 05:21:13 +00:00
For PR1146:
Simplify construction of FunctionType to use default arguments. llvm-svn: 35810
This commit is contained in:
parent
a2b16b4ee5
commit
1f674acbdf
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user