[cfe-commits] r45790 - /cfe/trunk/AST/ASTContext.cpp

Steve Naroff snaroff at apple.com
Wed Jan 9 15:44:05 PST 2008


Author: snaroff
Date: Wed Jan  9 17:44:05 2008
New Revision: 45790

URL: http://llvm.org/viewvc/llvm-project?rev=45790&view=rev
Log:

Add a FIXME to commit r45784. Thanks mrs!


Modified:
    cfe/trunk/AST/ASTContext.cpp

Modified: cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ASTContext.cpp?rev=45790&r1=45789&r2=45790&view=diff

==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Wed Jan  9 17:44:05 2008
@@ -1627,7 +1627,8 @@
       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;





More information about the cfe-commits mailing list