Skip to content

Commit 01fc35a

Browse files
committed
TableGen: Fixed the string table definitions visibility.
This fixes the buildbots issues reported in llvm#148839.
1 parent d67d91a commit 01fc35a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/TableGen/StringToOffsetTable.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS,
8383
#pragma GCC diagnostic pop
8484
#endif
8585
86-
{1}constexpr llvm::StringTable
86+
{1} llvm::StringTable
8787
{2}{0} = {0}Storage;
8888
)",
89-
Name, ClassPrefix.empty() ? "static " : "", ClassPrefix);
89+
Name, ClassPrefix.empty() ? "static constexpr" : "const",
90+
ClassPrefix);
9091
}
9192

9293
void StringToOffsetTable::EmitString(raw_ostream &O) const {

0 commit comments

Comments
 (0)