Skip to content

Commit a743e97

Browse files
authored
spirv: fix build for C++20 (microsoft#6105)
This codebase is using C++17, but to remain compatible with C++20, I need to remove this. Starting C++20, an aggregate is required to have no user-declared constructors, vs before, no user-provided constructors. So even if if the only the default constructor is provided, this is enough to prevent us from using this class as an aggregate in c++20. Signed-off-by: Nathan Gauër <[email protected]>
1 parent 3ef6ca2 commit a743e97

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/clang/lib/SPIRV/DeclResultIdMapper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ class DeclResultIdMapper {
384384
/// The struct containing the data needed to create the input and output
385385
/// variables for the decl.
386386
struct StageVarDataBundle {
387-
public:
388-
StageVarDataBundle() = default;
389387
// The declaration of the variable for which we need to create the stage
390388
// variables.
391389
const NamedDecl *decl;

0 commit comments

Comments
 (0)