Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cope with null attribute type in P6opaque.
  • Loading branch information
jnthn committed Feb 1, 2013
1 parent b56b607 commit 8f5a622
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/perl6/nqp/sixmodel/reprs/P6Opaque.java
Expand Up @@ -57,9 +57,12 @@ public void compose(ThreadContext tc, STable st, SixModelObject repr_info) {
for (long j = 0; j < numAttrs; j++) {
SixModelObject attrHash = attrs.at_pos_boxed(tc, j);
String attrName = attrHash.at_key_boxed(tc, "name").get_str(tc);
SixModelObject attrType = attrHash.at_key_boxed(tc, "type");
if (attrType == null)
attrType = tc.gc.KnowHOW;
indexes.put(attrName, curAttr++);
AttrInfo info = new AttrInfo();
info.st = attrHash.at_key_boxed(tc, "type").st;
info.st = attrType.st;
if (st.REPR.get_storage_spec(tc, st).inlineable == StorageSpec.INLINED)
flattenedSTables.add(st);
else
Expand Down

0 comments on commit 8f5a622

Please sign in to comment.