]> granicus.if.org Git - clang/commit
MS ABI: Fix logic bug in member pointer null test code
authorReid Kleckner <reid@kleckner.net>
Fri, 2 May 2014 00:05:16 +0000 (00:05 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 2 May 2014 00:05:16 +0000 (00:05 +0000)
commitfb3f2a93e5796908d768ad50bc3e51de8332f3dd
tree1fa72f2a293086317a583b7a310d368f842308f5
parentfc4510c523cb547eac247cc20cb0837ebfa4bd18
MS ABI: Fix logic bug in member pointer null test code

This code is trying to test if the pointer is *not* null.  Therefore we
should use 'or' instead of 'and' to combine the results of 'icmp ne'.
This logic is consistent with the general member pointer comparison code
in EmitMemberPointerComparison.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207815 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-member-pointers.cpp