File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ class ConstantAggregateBuilderBase
77
77
addInt (IGM ().Int32Ty , value);
78
78
}
79
79
80
+ void addInt64 (uint64_t value) { addInt (IGM ().Int64Ty , value); }
81
+
80
82
void addRelativeAddressOrNull (llvm::Constant *target) {
81
83
if (target) {
82
84
addRelativeAddress (target);
Original file line number Diff line number Diff line change @@ -94,12 +94,13 @@ class EnumMetadataScanner : public EnumMetadataVisitor<Impl> {
94
94
void addGenericWitnessTable (GenericRequirement requirement) { addPointer (); }
95
95
void addPayloadSize () { addPointer (); }
96
96
void noteStartOfTypeSpecificMembers () {}
97
- void addTrailingFlags () { addPointer (); }
97
+ void addTrailingFlags () { addInt64 (); }
98
98
99
99
private:
100
100
void addPointer () {
101
101
NextOffset += super::IGM.getPointerSize ();
102
102
}
103
+ void addInt64 () { NextOffset += Size (8 ); }
103
104
};
104
105
105
106
} // end namespace irgen
Original file line number Diff line number Diff line change @@ -104,13 +104,14 @@ class StructMetadataScanner : public StructMetadataVisitor<Impl> {
104
104
NextOffset = NextOffset.roundUpToAlignment (super::IGM.getPointerAlignment ());
105
105
}
106
106
107
- void addTrailingFlags () { addPointer (); }
107
+ void addTrailingFlags () { addInt64 (); }
108
108
109
109
private:
110
110
void addPointer () {
111
111
NextOffset += super::IGM.getPointerSize ();
112
112
}
113
113
void addInt32 () { NextOffset += Size (4 ); }
114
+ void addInt64 () { NextOffset += Size (8 ); }
114
115
};
115
116
116
117
} // end namespace irgen
You can’t perform that action at this time.
0 commit comments