[NFC] Always initialize all members in ABIArgInfo

Differential Revision: https://reviews.llvm.org/D57523

llvm-svn: 354546
This commit is contained in:
Serge Guelton 2019-02-21 04:55:50 +00:00
parent 38dd1b3726
commit 7cfd5b6634
1 changed files with 8 additions and 7 deletions

View File

@ -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,