diff options
| -rw-r--r-- | llvm/include/llvm/IR/Constants.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/IR/DerivedTypes.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/IR/Constants.h b/llvm/include/llvm/IR/Constants.h index a4dee43d21b..5db9b3bb504 100644 --- a/llvm/include/llvm/IR/Constants.h +++ b/llvm/include/llvm/IR/Constants.h @@ -458,7 +458,7 @@ public: static typename std::enable_if<are_base_of<Constant, Csts...>::value, Constant *>::type get(StructType *T, Csts *... Vs) { - SmallVector<Constant *, 8> Values{{Vs...}}; + SmallVector<Constant *, 8> Values({Vs...}); return get(T, Values); } diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h index 82b5eb834c8..6a7c83f5caa 100644 --- a/llvm/include/llvm/IR/DerivedTypes.h +++ b/llvm/include/llvm/IR/DerivedTypes.h @@ -234,7 +234,7 @@ public: StructType *>::type create(StringRef Name, Type *elt1, Tys *... elts) { assert(elt1 && "Cannot create a struct type with no elements with this"); - SmallVector<llvm::Type *, 8> StructFields{{elt1, elts...}}; + SmallVector<llvm::Type *, 8> StructFields({elt1, elts...}); return create(StructFields, Name); } @@ -254,7 +254,7 @@ public: get(Type *elt1, Tys *... elts) { assert(elt1 && "Cannot create a struct type with no elements with this"); LLVMContext &Ctx = elt1->getContext(); - SmallVector<llvm::Type *, 8> StructFields{{elt1, elts...}}; + SmallVector<llvm::Type *, 8> StructFields({elt1, elts...}); return llvm::StructType::get(Ctx, StructFields); } @@ -290,7 +290,7 @@ public: typename std::enable_if<are_base_of<Type, Tys...>::value, void>::type setBody(Type *elt1, Tys *... elts) { assert(elt1 && "Cannot create a struct type with no elements with this"); - SmallVector<llvm::Type *, 8> StructFields{{elt1, elts...}}; + SmallVector<llvm::Type *, 8> StructFields({elt1, elts...}); setBody(StructFields); } |

