From: Chandler Carruth Date: Sun, 13 Dec 2009 07:04:45 +0000 (+0000) Subject: Don't leave pointers uninitialized in the default constructor. GCC complains X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0daf77e8034cfb70fbffbfa77d138b78b55af303;p=oota-llvm.git Don't leave pointers uninitialized in the default constructor. GCC complains about the potential use of these uninitialized members under certain conditions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91239 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index e25f9e2a999..438ac43bcba 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -102,7 +102,7 @@ namespace { public: typedef std::vector ValVector; - RenamePassData() {} + RenamePassData() : BB(NULL), Pred(NULL), Values() {} RenamePassData(BasicBlock *B, BasicBlock *P, const ValVector &V) : BB(B), Pred(P), Values(V) {} BasicBlock *BB;