diff options
author | Serge Guelton <sguelton@redhat.com> | 2019-02-21 04:55:50 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@redhat.com> | 2019-02-21 04:55:50 +0000 |
commit | 7cfd5b66346249e902ef3ff3fd01276f8b9b3a3e (patch) | |
tree | 7cd88306338bc55a49cd48a40fae3f280b5f709a | |
parent | 38dd1b3726c2d2558cc5745f91d0d8c9cbc321df (diff) | |
download | bcm5719-llvm-7cfd5b66346249e902ef3ff3fd01276f8b9b3a3e.tar.gz bcm5719-llvm-7cfd5b66346249e902ef3ff3fd01276f8b9b3a3e.zip |
[NFC] Always initialize all members in ABIArgInfo
Differential Revision: https://reviews.llvm.org/D57523
llvm-svn: 354546
-rw-r--r-- | clang/include/clang/CodeGen/CGFunctionInfo.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/clang/include/clang/CodeGen/CGFunctionInfo.h b/clang/include/clang/CodeGen/CGFunctionInfo.h index 52157f0c3cc..862928bf4bc 100644 --- a/clang/include/clang/CodeGen/CGFunctionInfo.h +++ b/clang/include/clang/CodeGen/CGFunctionInfo.h @@ -111,14 +111,15 @@ private: } ABIArgInfo(Kind K) - : TheKind(K), PaddingInReg(false), InReg(false), SuppressSRet(false) { - } - -public: - ABIArgInfo() - : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), - TheKind(Direct), 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() + : ABIArgInfo(Direct) { +} static ABIArgInfo getDirect(llvm::Type *T = nullptr, unsigned Offset = 0, llvm::Type *Padding = nullptr, |