Fix warnings

llvm-svn: 53133
This commit is contained in:
Seo Sanghyeon 2008-07-04 09:32:15 +00:00
parent 4449ec09d6
commit be0e659da4
2 changed files with 4 additions and 4 deletions

View File

@ -177,10 +177,10 @@ public:
ConstExprIterator& operator++() { ++I; return *this; } ConstExprIterator& operator++() { ++I; return *this; }
ConstExprIterator operator+(size_t i) { return I+i; } ConstExprIterator operator+(size_t i) { return I+i; }
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; } signed operator-(const ConstExprIterator& R) const { return I - R.I; }
Expr * const operator*() const { return cast<Expr>(*I); } Expr * operator*() const { return cast<Expr>(*I); }
Expr * const 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; } 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; }

View File

@ -337,7 +337,7 @@ public:
void setObjCDeclQualifier(ObjCDeclQualifier DQVal) void setObjCDeclQualifier(ObjCDeclQualifier DQVal)
{ objcDeclQualifier = (ObjCDeclQualifier) (objcDeclQualifier | DQVal); } { objcDeclQualifier = (ObjCDeclQualifier) (objcDeclQualifier | DQVal); }
const ObjCPropertyAttributeKind getPropertyAttributes() const ObjCPropertyAttributeKind getPropertyAttributes() const
{ return ObjCPropertyAttributeKind(PropertyAttributes); } { return ObjCPropertyAttributeKind(PropertyAttributes); }
void setPropertyAttributes(ObjCPropertyAttributeKind PRVal) { void setPropertyAttributes(ObjCPropertyAttributeKind PRVal) {
PropertyAttributes = PropertyAttributes =