From: Benjamin Kramer Date: Tue, 6 Mar 2012 13:32:36 +0000 (+0000) Subject: Remove excess const, a const_iterator shouldn't be const itself. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e6f1355c38fb66b0bee35cb4d6ec93f07196d961;hp=4e3e5dec1a2a479891b4081c1c715a97fd85644d;p=oota-llvm.git Remove excess const, a const_iterator shouldn't be const itself. Fixes 1242 warnings from gcc during clang build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152120 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/TinyPtrVector.h b/include/llvm/ADT/TinyPtrVector.h index 362f2961ec3..5be93702a30 100644 --- a/include/llvm/ADT/TinyPtrVector.h +++ b/include/llvm/ADT/TinyPtrVector.h @@ -63,7 +63,7 @@ public: return Val.template get()->size(); } - typedef const EltTy *const const_iterator; + typedef const EltTy *const_iterator; typedef EltTy *iterator; iterator begin() {