Fix warnings

llvm-svn: 53141
This commit is contained in:
Seo Sanghyeon 2008-07-05 02:01:25 +00:00
parent 04bfdd555e
commit d27410b580
2 changed files with 3 additions and 2 deletions

View File

@ -116,7 +116,7 @@ namespace clang {
// end iterator
RopePieceBTreeIterator() : CurNode(0), CurPiece(0), CurChar(0) {}
const char operator*() const {
char operator*() const {
return (*CurPiece)[CurChar];
}

View File

@ -830,7 +830,7 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclTy *classDecl,
|| isa<ObjCProtocolDecl>(ClassDecl);
bool checkIdenticalMethods = isa<ObjCImplementationDecl>(ClassDecl);
if (pNum != 0)
if (pNum != 0) {
if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(ClassDecl))
IDecl->addProperties((ObjCPropertyDecl**)allProperties, pNum);
else if (ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl))
@ -839,6 +839,7 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclTy *classDecl,
PDecl->addProperties((ObjCPropertyDecl**)allProperties, pNum);
else
assert(false && "ActOnAtEnd - property declaration misplaced");
}
for (unsigned i = 0; i < allNum; i++ ) {
ObjCMethodDecl *Method =