summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/Type.h2
-rw-r--r--clang/lib/AST/ASTContext.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 62cd2787ac0..4d92f45391e 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -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; }
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 25a95792583..1ab76e21be0 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -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(),
OpenPOWER on IntegriCloud