Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 62bc76f

Browse files
committed
Fix a few more binary exprs for the CC.
1 parent ba30fd2 commit 62bc76f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/jit/lclvars.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ void Compiler::lvaDecRefCnts(GenTreePtr tree)
21702170

21712171
if ((tree->gtOper == GT_CALL) && (tree->gtFlags & GTF_CALL_UNMANAGED))
21722172
{
2173-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
2173+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
21742174
if (!opts.ShouldUsePInvokeHelpers())
21752175
{
21762176
/* Get the special variable descriptor */
@@ -2229,7 +2229,7 @@ void Compiler::lvaIncRefCnts(GenTreePtr tree)
22292229

22302230
if ((tree->gtOper == GT_CALL) && (tree->gtFlags & GTF_CALL_UNMANAGED))
22312231
{
2232-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
2232+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
22332233
if (!opts.ShouldUsePInvokeHelpers())
22342234
{
22352235
/* Get the special variable descriptor */
@@ -2819,7 +2819,7 @@ void Compiler::lvaMarkLclRefs(GenTreePtr tree)
28192819
/* Is this a call to unmanaged code ? */
28202820
if (tree->gtOper == GT_CALL && tree->gtFlags & GTF_CALL_UNMANAGED)
28212821
{
2822-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
2822+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
28232823
if (!opts.ShouldUsePInvokeHelpers())
28242824
{
28252825
/* Get the special variable descriptor */
@@ -3189,7 +3189,7 @@ void Compiler::lvaMarkLocalVars()
31893189

31903190
if (info.compCallUnmanaged != 0)
31913191
{
3192-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
3192+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
31933193
if (!opts.ShouldUsePInvokeHelpers())
31943194
{
31953195
noway_assert(info.compLvFrameListRoot >= info.compLocalsCount &&

src/jit/liveness.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ void Compiler::fgPerStatementLocalVarLiveness(GenTreePtr startNode, GenTreePtr a
438438

439439
if ((tree->gtCall.IsUnmanaged() || (tree->gtCall.IsTailCall() && info.compCallUnmanaged)))
440440
{
441-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
441+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
442442
if (!opts.ShouldUsePInvokeHelpers())
443443
{
444444
/* Get the TCB local and mark it as used */
@@ -634,7 +634,7 @@ void Compiler::fgPerBlockLocalVarLiveness()
634634

635635
if (block->bbJumpKind == BBJ_RETURN && info.compCallUnmanaged)
636636
{
637-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
637+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
638638
if (!opts.ShouldUsePInvokeHelpers())
639639
{
640640
noway_assert(info.compLvFrameListRoot < lvaCount);
@@ -1749,7 +1749,7 @@ VARSET_VALRET_TP Compiler::fgComputeLife(VARSET_VALARG_TP lifeArg,
17491749

17501750
if (tree->gtCall.IsTailCall() && info.compCallUnmanaged)
17511751
{
1752-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
1752+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
17531753
if (!opts.ShouldUsePInvokeHelpers())
17541754
{
17551755
/* Get the TCB local and make it live */
@@ -1781,7 +1781,7 @@ VARSET_VALRET_TP Compiler::fgComputeLife(VARSET_VALARG_TP lifeArg,
17811781
if (tree->gtCall.IsUnmanaged())
17821782
{
17831783
/* Get the TCB local and make it live */
1784-
assert(!opts.ShouldUsePInvokeHelpers() || info.compLvFrameListRoot == BAD_VAR_NUM);
1784+
assert((!opts.ShouldUsePInvokeHelpers()) || (info.compLvFrameListRoot == BAD_VAR_NUM));
17851785
if (!opts.ShouldUsePInvokeHelpers())
17861786
{
17871787
noway_assert(info.compLvFrameListRoot < lvaCount);

0 commit comments

Comments
 (0)