]> granicus.if.org Git - llvm/commitdiff
Same expressions on both sides of the return
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 12 Jun 2017 18:53:46 +0000 (18:53 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 12 Jun 2017 18:53:46 +0000 (18:53 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305219 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp

index 11e2e215303c103561c2511a4c88f53a46c2672c..8704cea607867cc956fab719057729c494f5f6bd 100644 (file)
@@ -34,7 +34,7 @@ static inline PointerMode getPointerMode(uint32_t Attrs) {
 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) {