r361242 - [CodeGenModule] BlockByrefHelpers - add missing uninitialized variables to constructor. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Tue May 21 04:37:55 PDT 2019


Author: rksimon
Date: Tue May 21 04:37:54 2019
New Revision: 361242

URL: http://llvm.org/viewvc/llvm-project?rev=361242&view=rev
Log:
[CodeGenModule] BlockByrefHelpers - add missing uninitialized variables to constructor. NFCI.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.h

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=361242&r1=361241&r2=361242&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.h Tue May 21 04:37:54 2019
@@ -254,7 +254,8 @@ public:
   /// have different helper functions.
   CharUnits Alignment;
 
-  BlockByrefHelpers(CharUnits alignment) : Alignment(alignment) {}
+  BlockByrefHelpers(CharUnits alignment)
+      : CopyHelper(nullptr), DisposeHelper(nullptr), Alignment(alignment) {}
   BlockByrefHelpers(const BlockByrefHelpers &) = default;
   virtual ~BlockByrefHelpers();
 




More information about the cfe-commits mailing list