aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-09 23:44:05 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-09 23:44:05 +0000
commit6f81811e6bf5ce6dc43c0ee0bb00087ca5ced378 (patch)
treed72d29677a3c29864ef046e35a9772c7c20e8515
parentffce4d572df79a95d21138fc28bb78f753fb2653 (diff)
Add a FIXME to commit r45784. Thanks mrs!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/ASTContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index 582babb6f2..36d9241f92 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -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;