From 9e32ef351092acdde970d1a9a80fa6565bf01456 Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Tue, 28 Aug 2018 18:24:57 -0700 Subject: [PATCH] Cast gtIconVal to target_ssize_t in src/jit/assertionprop.cpp --- src/jit/assertionprop.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jit/assertionprop.cpp b/src/jit/assertionprop.cpp index 5e00ef9..8bc83fe 100644 --- a/src/jit/assertionprop.cpp +++ b/src/jit/assertionprop.cpp @@ -1115,7 +1115,9 @@ AssertionIndex Compiler::optCreateAssertion(GenTree* op1, goto DONE_ASSERTION; } // Do not Constant-Prop large constants for ARM - if (!codeGen->validImmForMov(op2->gtIntCon.gtIconVal)) + // TODO-CrossBitness: we wouldn't need the cast below if GenTreeIntCon::gtIconVal had + // target_ssize_t type. + if (!codeGen->validImmForMov((target_ssize_t)op2->gtIntCon.gtIconVal)) { goto DONE_ASSERTION; // Don't make an assertion } -- 2.7.4