Skip to content
Snippets Groups Projects
Commit 5721f6b6 authored by stepan's avatar stepan
Browse files

Fix UpdateDimNames: use the result of getNonShared()

parent 988a648f
Branches
No related tags found
No related merge requests found
......@@ -96,13 +96,13 @@ public abstract class UpdateDimNames extends RBuiltinNode {
@Cached("create(DIMNAMES_ATTR_KEY)") RemoveAttributeNode remove) {
RAbstractContainer result = (RAbstractContainer) container.getNonShared();
if (isRVectorProfile.profile(container instanceof RVector)) {
RVector vector = (RVector) container;
RVector vector = (RVector) result;
if (vector.getInternalDimNames() != null) {
vector.setInternalDimNames(null);
remove.execute(vector.getAttributes());
}
} else {
container.setDimNames(null);
result.setDimNames(null);
}
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment