[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,
LinkageTypes Linkage, const Twine &Name,
unsigned AddressSpace = 0)
: GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace),
ObjComdat(nullptr) {
: GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace) {
setGlobalValueSubClassData(0);
}
~GlobalObject();
Comdat *ObjComdat;
Comdat *ObjComdat = nullptr;
enum {
LastAlignmentBit = 5,
HasSectionHashEntryBit,