]> granicus.if.org Git - clang/commitdiff
[NFC] Always initialize all members in ABIArgInfo
authorSerge Guelton <sguelton@redhat.com>
Thu, 21 Feb 2019 04:55:50 +0000 (04:55 +0000)
committerSerge Guelton <sguelton@redhat.com>
Thu, 21 Feb 2019 04:55:50 +0000 (04:55 +0000)
Differential Revision: https://reviews.llvm.org/D57523

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354546 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/CodeGen/CGFunctionInfo.h

index 52157f0c3cc95deec7ff0566ce6763e7bbfafb6f..862928bf4bcac4b240912ef4709721500a2145da 100644 (file)
@@ -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,