diff options
author | Hanjoung Lee <hanjoung.lee@samsung.com> | 2017-07-13 17:58:36 +0900 |
---|---|---|
committer | Hanjoung Lee <hanjoung.lee@samsung.com> | 2017-07-13 18:01:37 +0900 |
commit | 3bbb044bc3a6d23c02909af831926e3131f4f061 (patch) | |
tree | 5f6620467b1b4f6f9b334aab919c16eab59a2769 /src/jit/codegenlegacy.cpp | |
parent | 0b22c4c4670c45b2b0034683697400a4e48699a5 (diff) | |
download | coreclr-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.cpp | 1 |
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); |