diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RPairList.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RPairList.java index 7a1944f3ea0fffa3b0f70da0dc5bc55795507a71..d2f1b99c455dd2b9c2fb9dd0801f9a8fd92ea978 100644 --- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RPairList.java +++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RPairList.java @@ -273,6 +273,12 @@ public class RPairList extends RSharingAttributeStorage implements RAbstractCont result = (RPairList) result.cdr; original = origList.cdr; } + if (getAttributes() != null) { + RAttributes newAttributes = result.initAttributes(); + for (RAttribute attr : getAttributes()) { + newAttributes.put(attr.getName(), attr.getValue()); + } + } return result; }