Delete redundant (RuntimeType) casts
authorJan Kotas <jkotas@microsoft.com>
Mon, 26 Feb 2018 00:53:42 +0000 (16:53 -0800)
committerJan Kotas <jkotas@microsoft.com>
Mon, 26 Feb 2018 04:01:09 +0000 (20:01 -0800)
commit93f484adde9a64c7cb4d2d31ebbae53d145f8fcf
treee1a82302f35273c96d53fc5512940ee2845874c6
parent3b7181a7742a5be6ee82c153b50fefd91f46b671
Delete redundant (RuntimeType) casts

Replace `== (RuntimeType)typeof(` with `== typeof`. The type comparison is treated as JIT intrinsic and the extra cast makes the code for it worse.
src/mscorlib/src/System/Reflection/CustomAttribute.cs
src/mscorlib/src/System/Reflection/Emit/DynamicMethod.cs