summaryrefslogtreecommitdiff
path: root/src/jit/codegenlegacy.cpp
diff options
context:
space:
mode:
authorHanjoung Lee <hanjoung.lee@samsung.com>2017-07-13 17:58:36 +0900
committerHanjoung Lee <hanjoung.lee@samsung.com>2017-07-13 18:01:37 +0900
commit3bbb044bc3a6d23c02909af831926e3131f4f061 (patch)
tree5f6620467b1b4f6f9b334aab919c16eab59a2769 /src/jit/codegenlegacy.cpp
parent0b22c4c4670c45b2b0034683697400a4e48699a5 (diff)
downloadcoreclr-3bbb044bc3a6d23c02909af831926e3131f4f061.tar.gz
coreclr-3bbb044bc3a6d23c02909af831926e3131f4f061.tar.bz2
coreclr-3bbb044bc3a6d23c02909af831926e3131f4f061.zip
[LegacyJIT/ARM] Fix const fold assert condition
Fix #12685
Diffstat (limited to 'src/jit/codegenlegacy.cpp')
-rw-r--r--src/jit/codegenlegacy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jit/codegenlegacy.cpp b/src/jit/codegenlegacy.cpp
index 6b0441eb02..41ab0b73ab 100644
--- a/src/jit/codegenlegacy.cpp
+++ b/src/jit/codegenlegacy.cpp
@@ -10615,6 +10615,7 @@ void CodeGen::genCodeForNumericCast(GenTreePtr tree, regMaskTP destReg, regMaskT
noway_assert((op1->gtOper != GT_CNS_INT && op1->gtOper != GT_CNS_LNG && op1->gtOper != GT_CNS_DBL) ||
tree->gtOverflow() || (op1->gtOper == GT_CNS_DBL && !_finite(op1->gtDblCon.gtDconVal)) ||
+ (op1->gtDblCon.gtDconVal <= -1.0 && varTypeIsUnsigned(tree->CastToType())) ||
!compiler->opts.OptEnabled(CLFLG_CONSTANTFOLD));
noway_assert(dstType != TYP_VOID);