]> granicus.if.org Git - llvm/commitdiff
[Subtarget] Follow up to r355167, add another set of curly braces to FeatureBitArray...
authorCraig Topper <craig.topper@intel.com>
Mon, 4 Mar 2019 19:23:37 +0000 (19:23 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 4 Mar 2019 19:23:37 +0000 (19:23 +0000)
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

utils/TableGen/SubtargetEmitter.cpp

index 677cd2ee3552ecc5af121cd4627d149b0bdb1543..950eea810b42bfa7e9e0e01d6c9a93ee74d8353c 100644 (file)
@@ -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 << "} } }";
 }
 
 //