forked from OSchip/llvm-project
parent
3e2f36e905
commit
6d35cc945f
|
@ -287,6 +287,8 @@ private:
|
|||
/// subclasses can pack their bitfields into the same word.
|
||||
unsigned TC : 5;
|
||||
|
||||
Type(const Type&); // DO NOT IMPLEMENT.
|
||||
void operator=(const Type&); // DO NOT IMPLEMENT.
|
||||
protected:
|
||||
// silence VC++ warning C4355: 'this' : used in base member initializer list
|
||||
Type *this_() { return this; }
|
||||
|
|
|
@ -631,7 +631,7 @@ const RecordDecl *ASTContext::addRecordToClass(const ObjCInterfaceDecl *D) {
|
|||
D->getIdentifier());
|
||||
/// FIXME! Can do collection of ivars and adding to the record while
|
||||
/// doing it.
|
||||
for (unsigned int i = 0; i != RecFields.size(); i++) {
|
||||
for (unsigned i = 0, e = RecFields.size(); i != e; ++i) {
|
||||
NewRD->addDecl(FieldDecl::Create(*this, NewRD,
|
||||
RecFields[i]->getLocation(),
|
||||
RecFields[i]->getIdentifier(),
|
||||
|
|
Loading…
Reference in New Issue