mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #83814 from xymus/cdecl-enum-layout
IRGen: Use C compatible representation for `@cdecl` enums
This commit is contained in:
@@ -539,8 +539,7 @@ public:
|
||||
}
|
||||
|
||||
void forwardDeclare(const EnumDecl *ED) {
|
||||
assert(ED->isObjC() || ED->getAttrs().getAttribute<CDeclAttr>() ||
|
||||
ED->hasClangNode());
|
||||
assert(ED->isCCompatibleEnum() || ED->hasClangNode());
|
||||
|
||||
forwardDeclare(ED, [&]{
|
||||
if (ED->getASTContext().LangOpts.hasFeature(Feature::CDecl)) {
|
||||
|
||||
Reference in New Issue
Block a user