From: Craig Topper Date: Mon, 4 Mar 2019 19:23:37 +0000 (+0000) Subject: [Subtarget] Follow up to r355167, add another set of curly braces to FeatureBitArray... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff9cb76b997b2dc1f7b5e3a4c9f655425795f439;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355327 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 677cd2ee355..950eea810b4 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/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 << "} } }"; } //