From: Benjamin Kramer Date: Sat, 22 Jan 2011 12:15:57 +0000 (+0000) Subject: Use a FunctionType::get overload that doesn't require an empty vector. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15f6765f6efd24bec4ec6f54e282c14193ef4014;p=clang Use a FunctionType::get overload that doesn't require an empty vector. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124029 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 4d0d40a0a8..631c335728 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -324,9 +324,7 @@ void CodeGenModule::AddGlobalDtor(llvm::Function * Dtor, int Priority) { void CodeGenModule::EmitCtorList(const CtorList &Fns, const char *GlobalName) { // Ctor function type is void()*. llvm::FunctionType* CtorFTy = - llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), - std::vector(), - false); + llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), false); llvm::Type *CtorPFTy = llvm::PointerType::getUnqual(CtorFTy); // Get the type of a ctor entry, { i32, void ()* }. @@ -822,8 +820,7 @@ CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef MangledName, if (isa(Ty)) { FTy = cast(Ty); } else { - FTy = llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), - std::vector(), false); + FTy = llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), false); IsIncompleteFunction = true; }