Initialize members properly during construction
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 1 Jun 2008 16:22:49 +0000 (16:22 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 1 Jun 2008 16:22:49 +0000 (16:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51841 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/LLVMCConfigurationEmitter.cpp

index 15803f244f8545fc59e65355d261d28001a88096..94c52d108499741d1efed5515e41e800e17789d4 100644 (file)
@@ -352,8 +352,8 @@ struct ToolProperties : public RefCountedBase<ToolProperties> {
 
   // Default ctor here is needed because StringMap can only store
   // DefaultConstructible objects
-  ToolProperties() : Flags(0) {}
-  ToolProperties (const std::string& n) : Name(n), Flags(0) {}
+  ToolProperties() : CmdLine(0), Flags(0) {}
+  ToolProperties (const std::string& n) : Name(n), CmdLine(0), Flags(0) {}
 };