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

Commit 9253a09

Browse files
committed
Use noway_assert for unpin interference check
1 parent 4554070 commit 9253a09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/jit/flowgraph.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22324,17 +22324,15 @@ void Compiler::fgInlineAppendStatements(InlineInfo* inlineInfo, BasicBlock* bloc
2232422324
continue;
2232522325
}
2232622326

22327-
#ifdef DEBUG
2232822327
// Does the local we're about to unpin appear in the return
2232922328
// expression? If so we somehow messed up and didn't properly
2233022329
// spill the return value. See impInlineFetchLocal.
2233122330
GenTreePtr retExpr = inlineInfo->retExpr;
2233222331
if (retExpr != nullptr)
2233322332
{
2233422333
const bool interferesWithReturn = gtHasRef(inlineInfo->retExpr, tmpNum, false);
22335-
assert(!interferesWithReturn);
22334+
noway_assert(!interferesWithReturn);
2233622335
}
22337-
#endif // DEBUG
2233822336

2233922337
// Emit the unpin, by assigning null to the local.
2234022338
var_types lclTyp = (var_types)lvaTable[tmpNum].lvType;

0 commit comments

Comments
 (0)