]> granicus.if.org Git - clang/commitdiff
Add a FIXME to commit r45784. Thanks mrs!
authorSteve Naroff <snaroff@apple.com>
Wed, 9 Jan 2008 23:44:05 +0000 (23:44 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 9 Jan 2008 23:44:05 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45790 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index 582babb6f261f93eb982083946a9e19f810deb6c..36d9241f92d53d033b9b80b1abb648cb949d724f 100644 (file)
@@ -1627,7 +1627,8 @@ bool ASTContext::typesAreCompatible(QualType lhs, QualType rhs) {
       return objcTypesAreCompatible(lcanon, rcanon);
          
        // C99 6.7.2.2p4: Each enumerated type shall be compatible with char,
-       // a signed integer type, or an unsigned integer type.
+       // a signed integer type, or an unsigned integer type. 
+       // FIXME: need to check the size and ensure it's the same.
        if ((lcanon->isEnumeralType() && rcanon->isIntegralType()) ||
            (rcanon->isEnumeralType() && lcanon->isIntegralType()))
          return true;