File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,9 @@ class SimpleIdentTypeRepr : public ComponentIdentTypeRepr {
283
283
SimpleIdentTypeRepr (SourceLoc Loc, Identifier Id)
284
284
: ComponentIdentTypeRepr(TypeReprKind::SimpleIdent, Loc, Id) {}
285
285
286
+ SimpleIdentTypeRepr (const SimpleIdentTypeRepr &repr)
287
+ : SimpleIdentTypeRepr(repr.getLoc(), repr.getIdentifier()) {}
288
+
286
289
static bool classof (const TypeRepr *T) {
287
290
return T->getKind () == TypeReprKind::SimpleIdent;
288
291
}
@@ -846,6 +849,9 @@ class FixedTypeRepr : public TypeRepr {
846
849
FixedTypeRepr (Type Ty, SourceLoc Loc)
847
850
: TypeRepr(TypeReprKind::Fixed), Ty(Ty), Loc(Loc) {}
848
851
852
+ FixedTypeRepr (const FixedTypeRepr& repr)
853
+ : FixedTypeRepr(repr.Ty, repr.Loc) {}
854
+
849
855
// / Retrieve the location.
850
856
SourceLoc getLoc () const { return Loc; }
851
857
Original file line number Diff line number Diff line change @@ -869,6 +869,8 @@ class MetadataReader {
869
869
return {true , metadataPointer};
870
870
}
871
871
}
872
+
873
+ swift_runtime_unreachable (" Unhandled IsaEncodingKind in switch." );
872
874
}
873
875
874
876
// / Read the parent type metadata from a nested nominal type metadata.
Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ class OldDemangler {
629
629
// / TODO: This is an atrocity. Come up with a shorter name.
630
630
#define FUNCSIGSPEC_CREATE_PARAM_KIND (kind ) \
631
631
Factory.createNode(Node::Kind::FunctionSignatureSpecializationParamKind, \
632
- unsigned (FunctionSigSpecializationParamKind::kind))
632
+ uint64_t (FunctionSigSpecializationParamKind::kind))
633
633
#define FUNCSIGSPEC_CREATE_PARAM_PAYLOAD (payload ) \
634
634
Factory.createNode(Node::Kind::FunctionSignatureSpecializationParamPayload, \
635
635
payload)
Original file line number Diff line number Diff line change @@ -1412,19 +1412,19 @@ NodePointer Demangler::demangleFuncSpecParam(Node::IndexType ParamIdx) {
1412
1412
// The parameters will be added later.
1413
1413
return addChild (Param, createNode (
1414
1414
Node::Kind::FunctionSignatureSpecializationParamKind,
1415
- unsigned (FunctionSigSpecializationParamKind::ClosureProp)));
1415
+ uint64_t (FunctionSigSpecializationParamKind::ClosureProp)));
1416
1416
case ' p' : {
1417
1417
switch (nextChar ()) {
1418
1418
case ' f' :
1419
1419
// Consumes an identifier parameter, which will be added later.
1420
1420
return addChild (Param, createNode (
1421
1421
Node::Kind::FunctionSignatureSpecializationParamKind,
1422
- unsigned (FunctionSigSpecializationParamKind::ConstantPropFunction)));
1422
+ uint64_t (FunctionSigSpecializationParamKind::ConstantPropFunction)));
1423
1423
case ' g' :
1424
1424
// Consumes an identifier parameter, which will be added later.
1425
1425
return addChild (Param, createNode (
1426
1426
Node::Kind::FunctionSignatureSpecializationParamKind,
1427
- unsigned (FunctionSigSpecializationParamKind::ConstantPropGlobal)));
1427
+ uint64_t (FunctionSigSpecializationParamKind::ConstantPropGlobal)));
1428
1428
case ' i' :
1429
1429
return addFuncSpecParamNumber (Param,
1430
1430
FunctionSigSpecializationParamKind::ConstantPropInteger);
You can’t perform that action at this time.
0 commit comments