diff options
author | Frits van Bommel <fvbommel@gmail.com> | 2011-07-18 12:00:32 +0000 |
---|---|---|
committer | Frits van Bommel <fvbommel@gmail.com> | 2011-07-18 12:00:32 +0000 |
commit | 39b5abf507b43da6b92f68b86406e0015ead18e9 (patch) | |
tree | a06cdf80abf33dbfa6fbe90ed17da84cf784e094 /lib/Linker/LinkModules.cpp | |
parent | c48e1ef0e22b4113dd4dd48c5b170a19fe4d0188 (diff) |
Migrate LLVM and Clang to use the new makeArrayRef(...) functions where previously explicit non-default constructors were used.
Mostly mechanical with some manual reformatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 55aa9bf188..0c078607bc 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -261,7 +261,7 @@ Type *TypeMapTy::getImpl(Type *Ty) { cast<PointerType>(Ty)->getAddressSpace()); case Type::FunctionTyID: return *Entry = FunctionType::get(ElementTypes[0], - ArrayRef<Type*>(ElementTypes).slice(1), + makeArrayRef(ElementTypes).slice(1), cast<FunctionType>(Ty)->isVarArg()); case Type::StructTyID: // Note that this is only reached for anonymous structs. |