[PATCH] D34110: Same expressions on both sides of the return

Sylvestre Ledru via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 11:35:26 PDT 2017


sylvestre.ledru created this revision.

I guess we want PointerToMemberFunction & PointerToDataMember

Fix coverity cid 1376038


Repository:
  rL LLVM

https://reviews.llvm.org/D34110

Files:
  lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp


Index: lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
===================================================================
--- lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
+++ lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
@@ -34,7 +34,7 @@
 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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34110.102209.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170612/9a30318a/attachment.bin>


More information about the llvm-commits mailing list