[cfe-commits] r68103 - in /cfe/trunk: include/clang/AST/Type.h lib/AST/ASTContext.cpp
Chris Lattner
sabre at nondot.org
Tue Mar 31 01:58:46 PDT 2009
Author: lattner
Date: Tue Mar 31 03:58:42 2009
New Revision: 68103
URL: http://llvm.org/viewvc/llvm-project?rev=68103&view=rev
Log:
disable copying of Type objects.
Modified:
cfe/trunk/include/clang/AST/Type.h
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=68103&r1=68102&r2=68103&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Tue Mar 31 03:58:42 2009
@@ -287,6 +287,8 @@
/// 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; }
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=68103&r1=68102&r2=68103&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Tue Mar 31 03:58:42 2009
@@ -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(),
More information about the cfe-commits
mailing list