[PATCH] D33127: fix to swap all members in StringMapImpl::swap
Takuto Ikuta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 06:32:06 PDT 2017
takuto.ikuta created this revision.
https://reviews.llvm.org/D33127
Files:
llvm/include/llvm/ADT/StringMap.h
Index: llvm/include/llvm/ADT/StringMap.h
===================================================================
--- llvm/include/llvm/ADT/StringMap.h
+++ llvm/include/llvm/ADT/StringMap.h
@@ -119,6 +119,7 @@
std::swap(NumBuckets, Other.NumBuckets);
std::swap(NumItems, Other.NumItems);
std::swap(NumTombstones, Other.NumTombstones);
+ std::swap(ItemSize, Other.ItemSize);
}
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33127.98754.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170512/07cc7e66/attachment.bin>
More information about the llvm-commits
mailing list