diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-08-19 06:57:14 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-08-19 06:57:14 +0000 |
| commit | 1674d9988dbf7da8b3e9cf8957ea87d6c20c6512 (patch) | |
| tree | 3be2e394aa6721e5abec6e73d0a347b2e0b25e1d | |
| parent | 75b76c6a92fa38d6914228791994a2824f35eb01 (diff) | |
| download | bcm5719-llvm-1674d9988dbf7da8b3e9cf8957ea87d6c20c6512.tar.gz bcm5719-llvm-1674d9988dbf7da8b3e9cf8957ea87d6c20c6512.zip | |
Prevent use of the implicit copy constructor on SmallPtrSetImpl. An accidental copy caused my SmallPtrSet->SmallPtrSetImpl conversion commit to fail the other day.
llvm-svn: 215971
| -rw-r--r-- | llvm/include/llvm/ADT/SmallPtrSet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/SmallPtrSet.h b/llvm/include/llvm/ADT/SmallPtrSet.h index 74f3fd43cec..60a028566e3 100644 --- a/llvm/include/llvm/ADT/SmallPtrSet.h +++ b/llvm/include/llvm/ADT/SmallPtrSet.h @@ -240,6 +240,8 @@ struct RoundUpToPowerOfTwo { template <typename PtrType> class SmallPtrSetImpl : public SmallPtrSetImplBase { typedef PointerLikeTypeTraits<PtrType> PtrTraits; + + SmallPtrSetImpl(const SmallPtrSetImpl&) LLVM_DELETED_FUNCTION; protected: // Constructors that forward to the base. SmallPtrSetImpl(const void **SmallStorage, const SmallPtrSetImpl &that) |

