diff options
author | Brian Sullivan <briansul@microsoft.com> | 2019-06-19 11:18:02 -0700 |
---|---|---|
committer | Brian Sullivan <briansul@microsoft.com> | 2019-06-19 13:34:25 -0700 |
commit | d4fd282d4b3d2190f0350a2f1f92c188f0073017 (patch) | |
tree | 7271cdd3e5c6d43f1d6a90184872d1209cedc185 /src/jit/morph.cpp | |
parent | d10701cc4d591bc89697b7bab98553305dcc9df4 (diff) | |
download | coreclr-d4fd282d4b3d2190f0350a2f1f92c188f0073017.tar.gz coreclr-d4fd282d4b3d2190f0350a2f1f92c188f0073017.tar.bz2 coreclr-d4fd282d4b3d2190f0350a2f1f92c188f0073017.zip |
Fix Issue #25134 - AssertionProp incorrectly removes cast from uint
Add additional check for the GT_UNSIGNED flag
+ Ran clang-format
+ Code review feedback, use IsUnsigned()
Diffstat (limited to 'src/jit/morph.cpp')
-rw-r--r-- | src/jit/morph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp index 5c13c2bc1a..610bd17805 100644 --- a/src/jit/morph.cpp +++ b/src/jit/morph.cpp @@ -6084,7 +6084,7 @@ GenTree* Compiler::fgMorphLocalVar(GenTree* tree, bool forceRemorph) { #if LOCAL_ASSERTION_PROP /* Assertion prop can tell us to omit adding a cast here */ - if (optLocalAssertionProp && optAssertionIsSubrange(tree, varType, apFull) != NO_ASSERTION_INDEX) + if (optLocalAssertionProp && optAssertionIsSubrange(tree, TYP_INT, varType, apFull) != NO_ASSERTION_INDEX) { return tree; } |