diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 34c915039fe..d5e9900e5a3 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -15,7 +15,6 @@ #define LLVM_ADT_SMALLVECTOR_H #include -#include #include #include @@ -91,20 +90,16 @@ public: const_iterator end() const { return End; } reference operator[](unsigned idx) { - assert(idx < size() && "out of range reference!"); return Begin[idx]; } const_reference operator[](unsigned idx) const { - assert(idx < size() && "out of range reference!"); return Begin[idx]; } reference back() { - assert(!empty() && "SmallVector is empty!"); return end()[-1]; } const_reference back() const { - assert(!empty() && "SmallVector is empty!"); return end()[-1]; } @@ -120,7 +115,6 @@ public: } void pop_back() { - assert(!empty() && "SmallVector is empty!"); --End; End->~T(); }