summaryrefslogtreecommitdiff
path: root/src/jit
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2017-09-28 16:16:06 -0700
committerGitHub <noreply@github.com>2017-09-28 16:16:06 -0700
commit322b440079db0e61fdd9aba3d95891a1d3d00d0d (patch)
tree5a98de4fb7ef8025567c251d4978827cfe9d0264 /src/jit
parent212a6baa708f40e25860581557b3dda717b709d9 (diff)
downloadcoreclr-322b440079db0e61fdd9aba3d95891a1d3d00d0d.tar.gz
coreclr-322b440079db0e61fdd9aba3d95891a1d3d00d0d.tar.bz2
coreclr-322b440079db0e61fdd9aba3d95891a1d3d00d0d.zip
ignore GT_ARGPLACE before gtUseNum check. (#14233)
Diffstat (limited to 'src/jit')
-rw-r--r--src/jit/codegenlinear.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jit/codegenlinear.cpp b/src/jit/codegenlinear.cpp
index 657d7799c1..1ee288b505 100644
--- a/src/jit/codegenlinear.cpp
+++ b/src/jit/codegenlinear.cpp
@@ -1112,7 +1112,6 @@ void CodeGen::genConsumeRegAndCopy(GenTree* node, regNumber needReg)
void CodeGen::genNumberOperandUse(GenTree* const operand, int& useNum) const
{
assert(operand != nullptr);
- assert(operand->gtUseNum == -1);
// Ignore argument placeholders.
if (operand->OperGet() == GT_ARGPLACE)
@@ -1120,6 +1119,8 @@ void CodeGen::genNumberOperandUse(GenTree* const operand, int& useNum) const
return;
}
+ assert(operand->gtUseNum == -1);
+
if (!operand->isContained() && !operand->IsCopyOrReload())
{
operand->gtUseNum = useNum;