Skip to content

[CIR] Upstream support for constructing globals #153319

@andykaylor

Description

@andykaylor

Overview

Upstream support for calling constructors when C++ struct/class variables are declared as globals.

Suggested minimal test case

struct S {
  S();
};
S s;

Existing incubator tests

clang/test/CIR/CodeGen/global-new.cpp
clang/test/CIR/CodeGen/struct.cpp

Metadata

Metadata

Assignees

Labels

ClangIRAnything related to the ClangIR project

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions