Temporarily Revert "[libc++] Fix -Wdeprecated-copy warnings in __bit_reference"
authorEric Christopher <echristo@gmail.com>
Thu, 12 Dec 2019 08:22:07 +0000 (00:22 -0800)
committerEric Christopher <echristo@gmail.com>
Thu, 12 Dec 2019 08:22:37 +0000 (00:22 -0800)
as it's causing test failures due to mismatched visibility.

This reverts commit 02bb20223bda5add729402962c70d0ebd0d98af2.

compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
libcxx/include/__bit_reference

index fdd8de7..8e624f6 100755 (executable)
@@ -55,7 +55,7 @@ run_lint() {
   FILTER=$1
   shift
   TASK_LOG=$(${MKTEMP})
-  ${CPPLINT} --filter=${FILTER} "$@" 2>$TASK_LOG
+  ${CPPLINT} --quiet --filter=${FILTER} "$@" 2>$TASK_LOG
   if [ "$?" != "0" ]; then
     cat $TASK_LOG | grep -v "Done processing" | grep -v "Total errors found" \
       | grep -v "Skipping input" >> $ERROR_LOG
index f035eea..05dfbe7 100644 (file)
@@ -62,8 +62,6 @@ public:
         return *this;
     }
 
-    __bit_reference(const __bit_reference&) = default;
-
     _LIBCPP_INLINE_VISIBILITY
     __bit_reference& operator=(const __bit_reference& __x) _NOEXCEPT
         {return operator=(static_cast<bool>(__x));}
@@ -150,7 +148,6 @@ private:
         : __seg_(__s), __mask_(__m) {}
 
     __bit_const_reference& operator=(const __bit_const_reference& __x);
-    __bit_const_reference(const __bit_const_reference&) = default;
 };
 
 // find