projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd32cdb
)
Cast gtIconVal to target_ssize_t in src/jit/assertionprop.cpp
author
Egor Chesakov
<Egor.Chesakov@microsoft.com>
Wed, 29 Aug 2018 01:24:57 +0000
(18:24 -0700)
committer
Egor Chesakov
<Egor.Chesakov@microsoft.com>
Wed, 29 Aug 2018 01:50:40 +0000
(18:50 -0700)
src/jit/assertionprop.cpp
patch
|
blob
|
history
diff --git
a/src/jit/assertionprop.cpp
b/src/jit/assertionprop.cpp
index
5e00ef9
..
8bc83fe
100644
(file)
--- 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
}