summaryrefslogtreecommitdiffstats
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
commita385fb8c2e4525beecd089927af570cfaec6903d (patch)
tree0812b584d06c8bc369dea9b80f5b015982464dd5
parente6b0ec8b5e97fbd532993677ec6a9b9c9ea2cc68 (diff)
downloadbcm5719-llvm-a385fb8c2e4525beecd089927af570cfaec6903d.tar.gz
bcm5719-llvm-a385fb8c2e4525beecd089927af570cfaec6903d.zip
Add a FIXME to commit r45784. Thanks mrs!
llvm-svn: 45790
-rw-r--r--clang/AST/ASTContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/AST/ASTContext.cpp b/clang/AST/ASTContext.cpp
index 582babb6f26..36d9241f92d 100644
--- a/clang/AST/ASTContext.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud