llvm.org GIT mirror llvm / 46155ae
[TableGen] Fix std::array initializer to avoid warnings with older tool chains. NFC 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 Mikael Holmen 2 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
691691 }
693693 if (Def->getName() == "undef_tied_input") {
694 std::array ResultVTs = { N->getSimpleType(0) };
694 std::array ResultVTs = {{ N->getSimpleType(0) }};
695695 std::array InstOps;
696696 auto IDOperandNo = NextRecordedOperandNo++;
697697 AddMatcher(new EmitNodeMatcher("TargetOpcode::IMPLICIT_DEF",