Skip to content

Commit fe4e5b8

Browse files
author
git apple-llvm automerger
committed
Merge commit '859e379ffbbb' from llvm.org/master into apple/master
2 parents 36e7164 + 859e379 commit fe4e5b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,9 +1304,10 @@ static bool emitCapabilityImplication(const RecordKeeper &recordKeeper,
13041304
if (!def.getValue("implies"))
13051305
continue;
13061306

1307-
os << " case Capability::" << enumerant.getSymbol()
1308-
<< ": {static const Capability implies[] = {";
13091307
std::vector<Record *> impliedCapsDefs = def.getValueAsListOfDefs("implies");
1308+
os << " case Capability::" << enumerant.getSymbol()
1309+
<< ": {static const Capability implies[" << impliedCapsDefs.size()
1310+
<< "] = {";
13101311
mlir::interleaveComma(impliedCapsDefs, os, [&](const Record *capDef) {
13111312
os << "Capability::" << EnumAttrCase(capDef).getSymbol();
13121313
});

0 commit comments

Comments
 (0)