@@ -283,8 +283,12 @@ class SimpleIdentTypeRepr : public ComponentIdentTypeRepr {
283
283
SimpleIdentTypeRepr (SourceLoc Loc, Identifier Id)
284
284
: ComponentIdentTypeRepr(TypeReprKind::SimpleIdent, Loc, Id) {}
285
285
286
+ // SmallVector::emplace_back will never need to call this because
287
+ // we reserve the right size, but it does try statically.
286
288
SimpleIdentTypeRepr (const SimpleIdentTypeRepr &repr)
287
- : SimpleIdentTypeRepr(repr.getLoc(), repr.getIdentifier()) {}
289
+ : SimpleIdentTypeRepr(repr.getLoc(), repr.getIdentifier()) {
290
+ llvm_unreachable (" should not be called dynamically" );
291
+ }
288
292
289
293
static bool classof (const TypeRepr *T) {
290
294
return T->getKind () == TypeReprKind::SimpleIdent;
@@ -849,8 +853,11 @@ class FixedTypeRepr : public TypeRepr {
849
853
FixedTypeRepr (Type Ty, SourceLoc Loc)
850
854
: TypeRepr(TypeReprKind::Fixed), Ty(Ty), Loc(Loc) {}
851
855
852
- FixedTypeRepr (const FixedTypeRepr& repr)
853
- : FixedTypeRepr(repr.Ty, repr.Loc) {}
856
+ // SmallVector::emplace_back will never need to call this because
857
+ // we reserve the right size, but it does try statically.
858
+ FixedTypeRepr (const FixedTypeRepr &repr) : FixedTypeRepr(repr.Ty, repr.Loc) {
859
+ llvm_unreachable (" should not be called dynamically" );
860
+ }
854
861
855
862
// / Retrieve the location.
856
863
SourceLoc getLoc () const { return Loc; }
0 commit comments