Encode enumeral types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44956 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index 82ff362..f50929d 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -1071,8 +1071,10 @@
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,