Skip to content

Commit 0c2d9f2

Browse files
committed
when we need to generalize in a slice-set, use the indicative value of the insertion sequence as generalization value
1 parent b106ce5 commit 0c2d9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/SequenceStorageNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ void setSlice(SequenceStorage store, SliceInfo sinfo, SequenceStorage sequence,
10641064

10651065
@Specialization(guards = "!compatibleAssign(self, sequence)")
10661066
void doError(@SuppressWarnings("unused") SequenceStorage self, @SuppressWarnings("unused") SliceInfo info, SequenceStorage sequence) {
1067-
throw new SequenceStoreException(sequence);
1067+
throw new SequenceStoreException(sequence.getIndicativeValue());
10681068
}
10691069

10701070
protected static boolean isValidReplacement(Class<? extends SequenceStorage> cachedClass, SequenceStorage s, SliceInfo info) {

0 commit comments

Comments
 (0)