Skip to content
Open
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
6 changes: 4 additions & 2 deletions clang/lib/CIR/CodeGen/CIRGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1656,9 +1656,11 @@ void CIRGenModule::emitGlobalDefinition(GlobalDecl gd, mlir::Operation *op) {
if (const auto *method = dyn_cast<CXXMethodDecl>(d)) {
// Make sure to emit the definition(s) before we emit the thunks. This is
// necessary for the generation of certain thunks.
if (isa<CXXConstructorDecl>(method) || isa<CXXDestructorDecl>(method))
if (isa<CXXConstructorDecl>(method) || isa<CXXDestructorDecl>(method)) {
if (fd->getAttr<AnnotateAttr>())
deferredAnnotations[getMangledName(gd)] = cast<ValueDecl>(d);
ABI->emitCXXStructor(gd);
else if (fd->isMultiVersion())
} else if (fd->isMultiVersion())
llvm_unreachable("NYI");
else
emitGlobalFunctionDefinition(gd, op);
Expand Down
Loading