diff options
-rw-r--r-- | AST/ASTContext.cpp | 4 | ||||
-rw-r--r-- | clang.xcodeproj/project.pbxproj | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp index 82ff36245e..f50929de93 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -1071,8 +1071,10 @@ void ASTContext::getObjcEncodingForType(QualType T, std::string& S) const getObjcEncodingForType(field->getType(), S); } S += '}'; + } else if (T->isEnumeralType()) { + S += 'i'; } else - assert(0 && "@encode for type not implemented!"); + assert(0 && "@encode for type not implemented!"); } void ASTContext::getObjcEncodingForTypeQualifier(Decl::ObjcDeclQualifier QT, diff --git a/clang.xcodeproj/project.pbxproj b/clang.xcodeproj/project.pbxproj index 45276f149b..0b2d9fabb0 100644 --- a/clang.xcodeproj/project.pbxproj +++ b/clang.xcodeproj/project.pbxproj @@ -775,6 +775,7 @@ 08FB7793FE84155DC02AAC07 /* Project object */ = { isa = PBXProject; buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "clang" */; + compatibilityVersion = "Xcode 2.4"; hasScannedForEncodings = 1; mainGroup = 08FB7794FE84155DC02AAC07 /* clang */; projectDirPath = ""; |