[cfe-commits] r151414 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Douglas Gregor dgregor at apple.com
Fri Feb 24 16:16:18 PST 2012


Author: dgregor
Date: Fri Feb 24 18:16:17 2012
New Revision: 151414

URL: http://llvm.org/viewvc/llvm-project?rev=151414&view=rev
Log:
Trying to increase my Ohloh ranking with trivial tweaks

Modified:
    cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=151414&r1=151413&r2=151414&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Fri Feb 24 18:16:17 2012
@@ -195,12 +195,8 @@
   // If this isn't a tagged type, we can convert it!
   const TagType *TT = Ty->getAs<TagType>();
   if (TT == 0) return true;
-  
-  
-  // If it's a tagged type used by-value, but is just a forward decl, we can't
-  // convert it.  Note that getDefinition()==0 is not the same as !isDefinition.
-  // The exception is an enumeration type with a fixed underlying type; these
-  // can be converted even if they are forward declarations.
+    
+  // Incomplete types cannot be converted.
   if (TT->isIncompleteType())
     return false;
   





More information about the cfe-commits mailing list