Fix invalid IntPtr == null comparisons, set strict mode for Roslyn (dotnet/coreclr...
authorJacek Blaszczynski <biosciencenow@outlook.com>
Mon, 30 Jul 2018 00:56:32 +0000 (02:56 +0200)
committerJan Kotas <jkotas@microsoft.com>
Mon, 30 Jul 2018 00:56:32 +0000 (17:56 -0700)
commitda93f5ad3aac83afeb249941e0ca9629b1903bfa
tree11270281d6a8604fcf18f909c2375d1c9e2e9293
parent42a435f41a380c6c769e46466644be8bfcc4ebb1
Fix invalid IntPtr == null comparisons, set strict mode for Roslyn (dotnet/coreclr#19191)

Issue reported in https://github.com/dotnet/corefx/issues/31456
Solution is to compare always against IntPtr.Zero and use Roslyn
stric mode for reporting warnings for IntPtr == null comparisons

Commit migrated from https://github.com/dotnet/coreclr/commit/93cf012db8396f5ea16f70b781a5de0d012fc65d
src/coreclr/Directory.Build.props
src/coreclr/src/System.Private.CoreLib/src/System/StubHelpers.cs