[PATCH] D116829: Initialize fields of TypeRecord subclasses
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 7 15:21:53 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG91cb471c4bd2: Initialize fields of TypeRecord subclasses (authored by vitalybuka).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116829/new/
https://reviews.llvm.org/D116829
Files:
llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
Index: llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
===================================================================
--- llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
+++ llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
@@ -111,7 +111,8 @@
}
TypeIndex ContainingType;
- PointerToMemberRepresentation Representation;
+ PointerToMemberRepresentation Representation =
+ PointerToMemberRepresentation::Unknown;
};
class TypeRecord {
@@ -160,8 +161,8 @@
TypeIndex getArgumentList() const { return ArgumentList; }
TypeIndex ReturnType;
- CallingConvention CallConv;
- FunctionOptions Options;
+ CallingConvention CallConv = CallingConvention::NearC;
+ FunctionOptions Options = FunctionOptions::None;
uint16_t ParameterCount = 0;
TypeIndex ArgumentList;
};
@@ -194,8 +195,8 @@
TypeIndex ReturnType;
TypeIndex ClassType;
TypeIndex ThisType;
- CallingConvention CallConv;
- FunctionOptions Options;
+ CallingConvention CallConv = CallingConvention::NearC;
+ FunctionOptions Options = FunctionOptions::None;
uint16_t ParameterCount = 0;
TypeIndex ArgumentList;
int32_t ThisPointerAdjustment = 0;
@@ -209,7 +210,7 @@
LabelRecord(LabelType Mode) : TypeRecord(TypeRecordKind::Label), Mode(Mode) {}
- LabelType Mode;
+ LabelType Mode = LabelType::Near;
};
// LF_MFUNC_ID
@@ -454,7 +455,7 @@
StringRef getUniqueName() const { return UniqueName; }
uint16_t MemberCount = 0;
- ClassOptions Options;
+ ClassOptions Options = ClassOptions::None;
TypeIndex FieldList;
StringRef Name;
StringRef UniqueName;
@@ -585,7 +586,7 @@
uint32_t getAge() const { return Age; }
StringRef getName() const { return Name; }
- GUID Guid;
+ GUID Guid = {};
uint32_t Age = 0;
StringRef Name;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116829.398255.patch
Type: text/x-patch
Size: 1780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220107/46b6e126/attachment.bin>
More information about the llvm-commits
mailing list