From 2729a918250527ee869705c4b8679996dd852974 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 4 Mar 2019 19:23:37 +0000 Subject: [PATCH] [Subtarget] Follow up to r355167, add another set of curly braces to FeatureBitArray initialization to satisfy older versions of clang. Apparently older versions of clang like 3.6 require an extra set of curly braces around std::array initializations. I'm told the C++ language was changed regarding this by CWG 1270. llvm-svn: 355327 --- llvm/utils/TableGen/SubtargetEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp index 677cd2ee3552..950eea810b42 100644 --- a/llvm/utils/TableGen/SubtargetEmitter.cpp +++ b/llvm/utils/TableGen/SubtargetEmitter.cpp @@ -182,13 +182,13 @@ static void printFeatureMask(raw_ostream &OS, RecVec &FeatureList, Mask[Bit / 64] |= 1ULL << (Bit % 64); } - OS << "{ { "; + OS << "{ { { "; for (unsigned i = 0; i != Mask.size(); ++i) { OS << "0x"; OS.write_hex(Mask[i]); OS << "ULL, "; } - OS << "} }"; + OS << "} } }"; } //