mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Fix VoidType serialization
This commit is contained in:
committed by
Pietro Fezzardi
parent
e02aa215fa
commit
15c5da73f2
@@ -158,10 +158,15 @@ AddressableType VoidType::removeConst() const {
|
||||
|
||||
template<std::same_as<VoidType>>
|
||||
static VoidType readType(mlir::DialectBytecodeReader &Reader) {
|
||||
return VoidType::get(Reader.getContext());
|
||||
bool Const;
|
||||
if (readBool(Const, Reader).failed())
|
||||
return {};
|
||||
|
||||
return VoidType::get(Reader.getContext(), Const);
|
||||
}
|
||||
|
||||
static void writeType(VoidType Type, mlir::DialectBytecodeWriter &Writer) {
|
||||
writeBool(Type.getIsConst(), Writer);
|
||||
}
|
||||
|
||||
//===----------------------------- IntegerType ----------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user