Skip to content

Windows: Fix build regressions with pure MSVC toolchain #4802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gen/objcgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ ObjcClassInfo *ObjCState::getClass(ClassDeclaration *decl) {

// Since we may end up referring to this very quickly
// the name should be assigned ASAP.
classes[decl] = { .decl = decl };
classes[decl] = { /*.decl =*/ decl };
auto classInfo = &classes[decl];

classInfo->table = (LLGlobalVariable *)getClassTable(decl);
Expand Down Expand Up @@ -665,7 +665,7 @@ ObjcProtocolInfo *ObjCState::getProtocol(InterfaceDeclaration *decl) {
return &protocols[decl];
}

protocols[decl] = { .decl = decl };
protocols[decl] = { /*.decl =*/ decl };
auto protoInfo = &protocols[decl];

auto name = objcResolveName(decl);
Expand Down Expand Up @@ -723,7 +723,7 @@ ObjcMethodInfo *ObjCState::getMethod(FuncDeclaration *decl) {
if (decl->_linkage != LINK::objc)
return nullptr;

methods[decl] = { .decl = decl };
methods[decl] = { /*.decl =*/ decl };
auto methodInfo = &methods[decl];

auto name = objcResolveName(decl);
Expand Down Expand Up @@ -775,7 +775,7 @@ ObjcIvarInfo* ObjCState::getIvar(VarDeclaration *decl) {

if (auto klass = decl->parent->isClassDeclaration()) {
auto ivarsym = objcGetIvarSymbol(objcResolveName(decl->parent), objcResolveName(decl));
ivars[decl] = { .decl = decl };
ivars[decl] = { /*.decl =*/ decl };
auto ivarInfo = &ivars[decl];

// Extern classes should generate globals
Expand Down
Loading