Fix warnings
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53133 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index e821cc3..afe1c4b 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -177,10 +177,10 @@
ConstExprIterator& operator++() { ++I; return *this; }
ConstExprIterator operator+(size_t i) { return I+i; }
ConstExprIterator operator-(size_t i) { return I-i; }
- Expr * const operator[](size_t idx) { return cast<Expr>(I[idx]); }
+ Expr * operator[](size_t idx) const { return cast<Expr>(I[idx]); }
signed operator-(const ConstExprIterator& R) const { return I - R.I; }
- Expr * const operator*() const { return cast<Expr>(*I); }
- Expr * const operator->() const { return cast<Expr>(*I); }
+ Expr * operator*() const { return cast<Expr>(*I); }
+ Expr * operator->() const { return cast<Expr>(*I); }
bool operator==(const ConstExprIterator& R) const { return I == R.I; }
bool operator!=(const ConstExprIterator& R) const { return I != R.I; }
bool operator>(const ConstExprIterator& R) const { return I > R.I; }
diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h
index dc76995..efe726d 100644
--- a/include/clang/Parse/DeclSpec.h
+++ b/include/clang/Parse/DeclSpec.h
@@ -337,7 +337,7 @@
void setObjCDeclQualifier(ObjCDeclQualifier DQVal)
{ objcDeclQualifier = (ObjCDeclQualifier) (objcDeclQualifier | DQVal); }
- const ObjCPropertyAttributeKind getPropertyAttributes() const
+ ObjCPropertyAttributeKind getPropertyAttributes() const
{ return ObjCPropertyAttributeKind(PropertyAttributes); }
void setPropertyAttributes(ObjCPropertyAttributeKind PRVal) {
PropertyAttributes =