aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-25 00:16:17 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-25 00:16:17 +0000
commitbcf38f2782d9cada139e22aa1ab8df10c9b047e5 (patch)
treead0f6e3a58006b8131a61b89fdfa85206a8933e7
parentd08d599da101f3fe3fd79e853f1dcea6be89d7c2 (diff)
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
-rw-r--r--lib/CodeGen/CodeGenTypes.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp
index 90a953b0c8..2ceb3fd2eb 100644
--- a/lib/CodeGen/CodeGenTypes.cpp
+++ b/lib/CodeGen/CodeGenTypes.cpp
@@ -195,12 +195,8 @@ bool CodeGenTypes::isFuncTypeArgumentConvertible(QualType Ty) {
// 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;