[llvm] r305219 - Same expressions on both sides of the return

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 11:53:46 PDT 2017


Author: sylvestre
Date: Mon Jun 12 13:53:46 2017
New Revision: 305219

URL: http://llvm.org/viewvc/llvm-project?rev=305219&view=rev
Log:
Same expressions on both sides of the return

Summary:
I guess we want PointerToMemberFunction & PointerToDataMember


Fix coverity cid 1376038 


Reviewers: zturner

Reviewed By: zturner

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D34110

Modified:
    llvm/trunk/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp

Modified: llvm/trunk/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp?rev=305219&r1=305218&r2=305219&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp Mon Jun 12 13:53:46 2017
@@ -34,7 +34,7 @@ static inline PointerMode getPointerMode
 static inline bool isMemberPointer(uint32_t Attrs) {
   PointerMode Mode = getPointerMode(Attrs);
   return Mode == PointerMode::PointerToDataMember ||
-         Mode == PointerMode::PointerToDataMember;
+         Mode == PointerMode::PointerToMemberFunction;
 }
 
 static inline uint32_t getEncodedIntegerLength(ArrayRef<uint8_t> Data) {




More information about the llvm-commits mailing list