File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4328,8 +4328,8 @@ uint64_t ASTWriter::WriteSpecializationInfoLookupTable(
4328
4328
IsPartial);
4329
4329
4330
4330
uint64_t Offset = Stream.GetCurrentBitNo ();
4331
- RecordData::value_type Record[] = {IsPartial ? DECL_PARTIAL_SPECIALIZATIONS
4332
- : DECL_SPECIALIZATIONS};
4331
+ RecordData::value_type Record[] = {static_cast <RecordData::value_type>(
4332
+ IsPartial ? DECL_PARTIAL_SPECIALIZATIONS : DECL_SPECIALIZATIONS) };
4333
4333
Stream.EmitRecordWithBlob (IsPartial ? DeclPartialSpecializationsAbbrev
4334
4334
: DeclSpecializationsAbbrev,
4335
4335
Record, LookupTable);
@@ -6065,7 +6065,9 @@ void ASTWriter::WriteSpecializationsUpdates(bool IsPartial) {
6065
6065
LookupTable, IsPartial);
6066
6066
6067
6067
// Write the lookup table
6068
- RecordData::value_type Record[] = {RecordType, getDeclID (D).getRawValue ()};
6068
+ RecordData::value_type Record[] = {
6069
+ static_cast <RecordData::value_type>(RecordType),
6070
+ getDeclID (D).getRawValue ()};
6069
6071
Stream.EmitRecordWithBlob (UpdateSpecializationAbbrev, Record, LookupTable);
6070
6072
}
6071
6073
}
You can’t perform that action at this time.
0 commit comments