[IR] Use default member initialization in GlobalObject (NFC)

This commit is contained in:
Kazu Hirata 2022-02-05 16:29:26 -08:00
parent f072603685
commit 1569252774
1 changed files with 2 additions and 3 deletions

View File

@ -43,13 +43,12 @@ protected:
GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
LinkageTypes Linkage, const Twine &Name, LinkageTypes Linkage, const Twine &Name,
unsigned AddressSpace = 0) unsigned AddressSpace = 0)
: GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace), : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace) {
ObjComdat(nullptr) {
setGlobalValueSubClassData(0); setGlobalValueSubClassData(0);
} }
~GlobalObject(); ~GlobalObject();
Comdat *ObjComdat; Comdat *ObjComdat = nullptr;
enum { enum {
LastAlignmentBit = 5, LastAlignmentBit = 5,
HasSectionHashEntryBit, HasSectionHashEntryBit,