Skip to content

Commit ef23d42

Browse files
rjmccallkovdan01
authored andcommitted
Abstract serialization fixes for the Apple Clang changes.
1 parent 9cf9cb2 commit ef23d42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/include/clang/AST/AbstractBasicReader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ class DataStreamBasicReader : public BasicReaderBase<Impl> {
213213
}
214214

215215
Qualifiers readQualifiers() {
216-
static_assert(sizeof(Qualifiers().getAsOpaqueValue()) <= sizeof(uint32_t),
216+
static_assert(sizeof(Qualifiers().getAsOpaqueValue()) <= sizeof(uint64_t),
217217
"update this if the value size changes");
218-
uint32_t value = asImpl().readUInt32();
218+
uint64_t value = asImpl().readUInt64();
219219
return Qualifiers::fromOpaqueValue(value);
220220
}
221221

clang/include/clang/AST/AbstractBasicWriter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ class DataStreamBasicWriter : public BasicWriterBase<Impl> {
196196
}
197197

198198
void writeQualifiers(Qualifiers value) {
199-
static_assert(sizeof(value.getAsOpaqueValue()) <= sizeof(uint32_t),
199+
static_assert(sizeof(value.getAsOpaqueValue()) <= sizeof(uint64_t),
200200
"update this if the value size changes");
201-
asImpl().writeUInt32(value.getAsOpaqueValue());
201+
asImpl().writeUInt64(value.getAsOpaqueValue());
202202
}
203203

204204
void writeExceptionSpecInfo(

0 commit comments

Comments
 (0)