Skip to content

Commit 89e5635

Browse files
committed
Update tablegen to generate shorts instead of chars for subgroup arrays.
llvm-svn: 103704
1 parent dd8f20d commit 89e5635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void ClangDiagGroupsEmitter::run(raw_ostream &OS) {
239239

240240
const std::vector<std::string> &SubGroups = I->second.SubGroups;
241241
if (!SubGroups.empty()) {
242-
OS << "static const char DiagSubGroup" << I->second.IDNo << "[] = { ";
242+
OS << "static const short DiagSubGroup" << I->second.IDNo << "[] = { ";
243243
for (unsigned i = 0, e = SubGroups.size(); i != e; ++i) {
244244
std::map<std::string, GroupInfo>::iterator RI =
245245
DiagsInGroup.find(SubGroups[i]);

0 commit comments

Comments
 (0)