summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2017-05-10 13:23:47 +0000
committerSerge Guelton <sguelton@quarkslab.com>2017-05-10 13:23:47 +0000
commitc9668165d68b1247b8aedd07a8e4f4201a77e9f3 (patch)
tree797fb94633aa066c29ebf98e0b8beb86b55120ac /llvm
parente8a3a0a538e75aed7d8c1479dbaebdc2cbf03800 (diff)
downloadbcm5719-llvm-c9668165d68b1247b8aedd07a8e4f4201a77e9f3.tar.gz
bcm5719-llvm-c9668165d68b1247b8aedd07a8e4f4201a77e9f3.zip
Use clang++-3.5 compatible initializer_list constructor
Otherwise, a warning is issued. llvm-svn: 302655
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/Constants.h2
-rw-r--r--llvm/include/llvm/IR/DerivedTypes.h6
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);
}
OpenPOWER on IntegriCloud