Skip to content

Commit

Permalink
[1.10>master] [MERGE #5557 @meg-gupta] OS#17531342 : Fix provability …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
Meghana Gupta committed Jul 30, 2018
2 parents 0f600da + 0625d4a commit 7149247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Backend/GlobOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6791,7 +6791,7 @@ GlobOpt::CanProveConditionalBranch(IR::Instr *instr, Value *src1Val, Value *src2
{
return false;
}
*result = src1ValueInfo->IsObject();
*result = !src1ValueInfo->IsPrimitive();
break;
}
default:
Expand Down

0 comments on commit 7149247

Please sign in to comment.