Skip to content

Commit 0625d4a

Browse files
author
Meghana Gupta
committed
[MERGE #5557 @meg-gupta] OS#17531342 : Fix provability check on BrOnObject
Merge pull request #5557 from meg-gupta:bronobjectbug BrOnObject returns true for all non primitives in the interpreter, fix the case for BrOnObject while checking for provability to reflect the same.
2 parents c25ff8b + 2acc18a commit 0625d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Backend/GlobOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6791,7 +6791,7 @@ GlobOpt::CanProveConditionalBranch(IR::Instr *instr, Value *src1Val, Value *src2
67916791
{
67926792
return false;
67936793
}
6794-
*result = src1ValueInfo->IsObject();
6794+
*result = !src1ValueInfo->IsPrimitive();
67956795
break;
67966796
}
67976797
default:

0 commit comments

Comments
 (0)