r354546 - [NFC] Always initialize all members in ABIArgInfo
Serge Guelton via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 20 20:55:50 PST 2019
Author: serge_sans_paille
Date: Wed Feb 20 20:55:50 2019
New Revision: 354546
URL: http://llvm.org/viewvc/llvm-project?rev=354546&view=rev
Log:
[NFC] Always initialize all members in ABIArgInfo
Differential Revision: https://reviews.llvm.org/D57523
Modified:
cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h
Modified: cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h?rev=354546&r1=354545&r2=354546&view=diff
==============================================================================
--- cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h (original)
+++ cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h Wed Feb 20 20:55:50 2019
@@ -111,14 +111,15 @@ private:
}
ABIArgInfo(Kind K)
- : TheKind(K), PaddingInReg(false), InReg(false), SuppressSRet(false) {
- }
+ : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), TheKind(K),
+ PaddingInReg(false), InAllocaSRet(false), IndirectByVal(false),
+ IndirectRealign(false), SRetAfterThis(false), InReg(false),
+ CanBeFlattened(false), SignExt(false), SuppressSRet(false) {}
+}
-public:
- ABIArgInfo()
- : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0),
- TheKind(Direct), PaddingInReg(false), InReg(false),
- SuppressSRet(false) {}
+public : ABIArgInfo()
+ : ABIArgInfo(Direct) {
+}
static ABIArgInfo getDirect(llvm::Type *T = nullptr, unsigned Offset = 0,
llvm::Type *Padding = nullptr,
More information about the cfe-commits
mailing list