Explorar o código

Trying to increase my Ohloh ranking with trivial tweaks

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151414 91177308-0d34-0410-b5e6-96231b3b80d8
Douglas Gregor %!s(int64=13) %!d(string=hai) anos
pai
achega
bcf38f2782
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  1. 2 6
      lib/CodeGen/CodeGenTypes.cpp

+ 2 - 6
lib/CodeGen/CodeGenTypes.cpp

@@ -195,12 +195,8 @@ bool CodeGenTypes::isFuncTypeArgumentConvertible(QualType Ty) {
   // If this isn't a tagged type, we can convert it!
   // If this isn't a tagged type, we can convert it!
   const TagType *TT = Ty->getAs<TagType>();
   const TagType *TT = Ty->getAs<TagType>();
   if (TT == 0) return true;
   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())
   if (TT->isIncompleteType())
     return false;
     return false;