From e6f1355c38fb66b0bee35cb4d6ec93f07196d961 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 6 Mar 2012 13:32:36 +0000 Subject: [PATCH 1/1] 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 --- include/llvm/ADT/TinyPtrVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.34.1