Permalink
Browse files

Temporary fix so 'asdl/run.sh osh-demo' compiles again.

  • Loading branch information...
Andy Chu
Andy Chu committed Jun 28, 2018
1 parent 1afd2dd commit eefd3a423cdc20ddb8ba5fba447cbff120ca4acc
Showing with 5 additions and 1 deletion.
  1. +5 −1 core/id_kind_gen.py
View
@@ -41,7 +41,11 @@ def GenCppCode(kind_names, id_names, f, id_labels=None, kind_labels=None):
Emit(', '.join(kind_names), f, 1)
Emit('};\n', f)
Emit('enum class Id : uint8_t {', f)
# TODO: Change this back to a uint8_t? Right now we have a Glob_ Kind which
# pushes it over 256, but we don't really need it in Id. It could easily be
# its own type GlobId.
Emit('enum class Id : uint16_t {', f)
for names_in_kind in id_names:
if id_labels:
s = ', '.join(['%s=%s' % (i, id_labels[i]) for i in names_in_kind]) + ','

0 comments on commit eefd3a4

Please sign in to comment.