Index: test/tools/llvm-rc/Inputs/tag-stringtable-basic.rc =================================================================== --- test/tools/llvm-rc/Inputs/tag-stringtable-basic.rc +++ test/tools/llvm-rc/Inputs/tag-stringtable-basic.rc @@ -5,8 +5,8 @@ } STRINGTABLE { - 1 "b" - 16 "bb" + 1, "b" + 16, "bb" } STRINGTABLE Index: tools/llvm-rc/ResourceScriptParser.cpp =================================================================== --- tools/llvm-rc/ResourceScriptParser.cpp +++ tools/llvm-rc/ResourceScriptParser.cpp @@ -573,6 +573,7 @@ // Some examples in documentation suggest that there might be a comma in // between, however we strictly adhere to the single statement definition. ASSIGN_OR_RETURN(IDResult, readInt()); + consumeOptionalType(Kind::Comma); ASSIGN_OR_RETURN(StrResult, readString()); Table->addString(*IDResult, *StrResult); }