diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-03-04 19:23:37 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-03-04 19:23:37 +0000 |
| commit | 2729a918250527ee869705c4b8679996dd852974 (patch) | |
| tree | 2d86a110b6a980b1d2adda9b1f9fd0ffb2c05e05 /llvm/utils/TableGen | |
| parent | 8acb0d9c82ed49512ba2df6e4a0e3ee65a220fdf (diff) | |
| download | bcm5719-llvm-2729a918250527ee869705c4b8679996dd852974.tar.gz bcm5719-llvm-2729a918250527ee869705c4b8679996dd852974.zip | |
[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
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/SubtargetEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp index 677cd2ee355..950eea810b4 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 << "} } }"; } // |

