@@ -360,12 +360,16 @@ class ASTExtInfo {
360
360
361
361
ASTExtInfoBuilder builder;
362
362
363
+ // Only for use by ASTExtInfoBuilder::build. Don't use it elsewhere!
363
364
ASTExtInfo (ASTExtInfoBuilder builder) : builder(builder) {}
365
+
364
366
ASTExtInfo (unsigned bits, ClangTypeInfo clangTypeInfo)
365
- : builder(bits, clangTypeInfo){};
367
+ : builder(bits, clangTypeInfo) {
368
+ builder.checkInvariants ();
369
+ };
366
370
367
371
public:
368
- ASTExtInfo () : builder(){ };
372
+ ASTExtInfo () : builder() { builder. checkInvariants (); };
369
373
370
374
// / Create a builder with the same state as \c this.
371
375
ASTExtInfoBuilder intoBuilder () const { return builder; }
@@ -654,12 +658,16 @@ class SILExtInfo {
654
658
655
659
SILExtInfoBuilder builder;
656
660
661
+ // Only for use by SILExtInfoBuilder::build. Don't use it elsewhere!
657
662
SILExtInfo (SILExtInfoBuilder builder) : builder(builder) {}
663
+
658
664
SILExtInfo (unsigned bits, ClangTypeInfo clangTypeInfo)
659
- : builder(bits, clangTypeInfo){};
665
+ : builder(bits, clangTypeInfo) {
666
+ builder.checkInvariants ();
667
+ };
660
668
661
669
public:
662
- SILExtInfo () : builder(){ };
670
+ SILExtInfo () : builder() { builder. checkInvariants (); };
663
671
664
672
static SILExtInfo getThin () {
665
673
return SILExtInfoBuilder (SILExtInfoBuilder::Representation::Thin, false ,
0 commit comments