A std::array is implemented as a template with an array inside a struct.
Older versions of clang, like 3.6, require an extra set of curly braces
around std::array initializations to avoid warnings.
The C++ language was changed regarding this by CWG 1270. So more modern
tool chains does not complain even if leaving out one level of braces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362360
91177308-0d34-0410-b5e6-
96231b3b80d8
}
if (Def->getName() == "undef_tied_input") {
- std::array<MVT::SimpleValueType, 1> ResultVTs = { N->getSimpleType(0) };
+ std::array<MVT::SimpleValueType, 1> ResultVTs = {{ N->getSimpleType(0) }};
std::array<unsigned, 0> InstOps;
auto IDOperandNo = NextRecordedOperandNo++;
AddMatcher(new EmitNodeMatcher("TargetOpcode::IMPLICIT_DEF",