[llvm] 1569252 - [IR] Use default member initialization in GlobalObject (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 5 16:54:59 PST 2022
Author: Kazu Hirata
Date: 2022-02-05T16:29:26-08:00
New Revision: 1569252774db0bf4fb0ca116d539db7d026e1360
URL: https://github.com/llvm/llvm-project/commit/1569252774db0bf4fb0ca116d539db7d026e1360
DIFF: https://github.com/llvm/llvm-project/commit/1569252774db0bf4fb0ca116d539db7d026e1360.diff
LOG: [IR] Use default member initialization in GlobalObject (NFC)
Added:
Modified:
llvm/include/llvm/IR/GlobalObject.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/GlobalObject.h b/llvm/include/llvm/IR/GlobalObject.h
index 0bb9fd7300596..96a2703166867 100644
--- a/llvm/include/llvm/IR/GlobalObject.h
+++ b/llvm/include/llvm/IR/GlobalObject.h
@@ -43,13 +43,12 @@ class GlobalObject : public GlobalValue {
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,
More information about the llvm-commits
mailing list