ΒΆllvm::Function* getNonTrivialCStructDestructor(
    clang::CodeGen::CodeGenModule& CGM,
    clang::CharUnits DstAlignment,
    bool IsVolatile,
    clang::QualType QT)

Description

Returns the destructor for a C struct with non-trivially copyable fields, generating it if necessary. The returned function uses the `cdecl` calling convention, returns void, and takes a single argument that is a pointer to the address of the struct.

Declared at: clang/include/clang/CodeGen/CodeGenABITypes.h:175

Parameters

clang::CodeGen::CodeGenModule& CGM
clang::CharUnits DstAlignment
bool IsVolatile
clang::QualType QT