Skip to content

Commit 2acc18a

Browse files
author
Meghana Gupta
committed
OS#17531342 : Fix provability check on BrOnObject
BrOnObject returns true for all non primitives in the interpreter, fix the case for BrOnObject while checking for provability to reflect the same.
1 parent 594381a commit 2acc18a

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
@@ -6790,7 +6790,7 @@ GlobOpt::CanProveConditionalBranch(IR::Instr *instr, Value *src1Val, Value *src2
67906790
{
67916791
return false;
67926792
}
6793-
*result = src1ValueInfo->IsObject();
6793+
*result = !src1ValueInfo->IsPrimitive();
67946794
break;
67956795
}
67966796
default:

0 commit comments

Comments
 (0)