disable copying of Type objects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68103 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 25a9579..1ab76e2 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -631,7 +631,7 @@
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(),