Skip to content
Snippets Groups Projects
Commit 2c2de34d authored by Lukas Stadler's avatar Lukas Stadler
Browse files

fix overly conservative assertion in BinaryMapNode

parent 087ae4a8
No related branches found
No related tags found
No related merge requests found
......@@ -496,7 +496,7 @@ abstract class VectorMapBinaryInternalNode extends RBaseNode {
@Cached("createCountingProfile()") LoopConditionProfile leftProfile,
@Cached("createCountingProfile()") LoopConditionProfile rightProfile,
@Cached("createBinaryProfile()") ConditionProfile smallRemainderProfile) {
assert result != right;
assert result != right || rightLength == leftLength;
leftProfile.profileCounted(leftLength);
rightProfile.profileCounted(rightLength);
while (leftProfile.inject(leftIter.getIndex() + 1 < leftLength)) {
......@@ -527,7 +527,7 @@ abstract class VectorMapBinaryInternalNode extends RBaseNode {
@Cached("createCountingProfile()") LoopConditionProfile leftProfile,
@Cached("createCountingProfile()") LoopConditionProfile rightProfile,
@Cached("createBinaryProfile()") ConditionProfile smallRemainderProfile) {
assert result != left;
assert result != left || rightLength == leftLength;
leftProfile.profileCounted(leftLength);
rightProfile.profileCounted(rightLength);
while (rightProfile.inject(rightIter.getIndex() + 1 < rightLength)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment