[libc-commits] [libc] 3302586 - [libc] Add a missing `this->` in __llvm_libc::cpp:MutableArrayRef::end.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Thu Jan 30 09:17:15 PST 2020


Author: Siva Chandra Reddy
Date: 2020-01-30T09:16:21-08:00
New Revision: 3302586faebd3055647a88bdad60da080af83598

URL: https://github.com/llvm/llvm-project/commit/3302586faebd3055647a88bdad60da080af83598
DIFF: https://github.com/llvm/llvm-project/commit/3302586faebd3055647a88bdad60da080af83598.diff

LOG: [libc] Add a missing `this->` in __llvm_libc::cpp:MutableArrayRef::end.

I had removed it to verify a review comment, but forgot to put it back.

Added: 
    

Modified: 
    libc/utils/CPP/ArrayRef.h

Removed: 
    


################################################################################
diff  --git a/libc/utils/CPP/ArrayRef.h b/libc/utils/CPP/ArrayRef.h
index ad6e25d00e08..ea58245daa1b 100644
--- a/libc/utils/CPP/ArrayRef.h
+++ b/libc/utils/CPP/ArrayRef.h
@@ -81,7 +81,7 @@ template <typename T> class MutableArrayRef : public ArrayRef<T> {
   T *data() const { return const_cast<T *>(ArrayRef<T>::data()); }
 
   iterator begin() const { return data(); }
-  iterator end() const { return data() + size(); }
+  iterator end() const { return data() + this->size(); }
 
   T &operator[](size_t Index) const { return data()[Index]; }
 };


        


More information about the libc-commits mailing list