[llvm-commits] [llvm] r152120 - /llvm/trunk/include/llvm/ADT/TinyPtrVector.h
Benjamin Kramer
benny.kra at googlemail.com
Tue Mar 6 05:32:36 PST 2012
Author: d0k
Date: Tue Mar 6 07:32:36 2012
New Revision: 152120
URL: http://llvm.org/viewvc/llvm-project?rev=152120&view=rev
Log:
Remove excess const, a const_iterator shouldn't be const itself.
Fixes 1242 warnings from gcc during clang build.
Modified:
llvm/trunk/include/llvm/ADT/TinyPtrVector.h
Modified: llvm/trunk/include/llvm/ADT/TinyPtrVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/TinyPtrVector.h?rev=152120&r1=152119&r2=152120&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/TinyPtrVector.h (original)
+++ llvm/trunk/include/llvm/ADT/TinyPtrVector.h Tue Mar 6 07:32:36 2012
@@ -63,7 +63,7 @@
return Val.template get<VecTy*>()->size();
}
- typedef const EltTy *const const_iterator;
+ typedef const EltTy *const_iterator;
typedef EltTy *iterator;
iterator begin() {
More information about the llvm-commits
mailing list