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/compiler.h | |
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/compiler.h')
-rw-r--r-- | src/jit/compiler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jit/compiler.h b/src/jit/compiler.h index bdc9a5c262..90aec385b6 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -6667,7 +6667,10 @@ public: ASSERT_TP optGetVnMappedAssertions(ValueNum vn); // Used for respective assertion propagations. - AssertionIndex optAssertionIsSubrange(GenTree* tree, var_types toType, ASSERT_VALARG_TP assertions); + AssertionIndex optAssertionIsSubrange(GenTree* tree, + var_types fromType, + var_types toType, + ASSERT_VALARG_TP assertions); AssertionIndex optAssertionIsSubtype(GenTree* tree, GenTree* methodTableArg, ASSERT_VALARG_TP assertions); AssertionIndex optAssertionIsNonNullInternal(GenTree* op, ASSERT_VALARG_TP assertions); bool optAssertionIsNonNull(GenTree* op, |