Skip to content

Commit beb696e

Browse files
author
James Molloy
committed
[TableGen] Pacify gcc-5.4 more
Followup to a previous pacification, this performs the same workaround to the TableGen generated code for tuple automata. llvm-svn: 373883
1 parent dfc1aee commit beb696e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/DFAEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ void CustomDfaEmitter::printActionType(raw_ostream &OS) { OS << TypeName; }
373373
void CustomDfaEmitter::printActionValue(action_type A, raw_ostream &OS) {
374374
const ActionTuple &AT = Actions[A];
375375
if (AT.size() > 1)
376-
OS << "{";
376+
OS << "std::make_tuple(";
377377
bool First = true;
378378
for (const auto &SingleAction : AT) {
379379
if (!First)
@@ -382,7 +382,7 @@ void CustomDfaEmitter::printActionValue(action_type A, raw_ostream &OS) {
382382
SingleAction.print(OS);
383383
}
384384
if (AT.size() > 1)
385-
OS << "}";
385+
OS << ")";
386386
}
387387

388388
namespace llvm {

0 commit comments

Comments
 (0)