]> granicus.if.org Git - clang/commitdiff
Initialize an otherwise-wild pointer. Fixes a crashy analyzer
authorDouglas Gregor <dgregor@apple.com>
Thu, 30 Jul 2009 16:10:26 +0000 (16:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 30 Jul 2009 16:10:26 +0000 (16:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77599 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/AnalysisConsumer.cpp

index 9c3274309c083884f172c785cf8d0349ea9388a2..6ed59b4ac2bce177427a1929e45c2446567fc609 100644 (file)
@@ -96,7 +96,7 @@ namespace {
                      const AnalyzerOptions& opts)
       : LOpts(lopts), Diags(diags),
         Ctx(0), PP(pp), PPF(ppf),
-        OutDir(outdir), Opts(opts) {
+        OutDir(outdir), Opts(opts), PD(0) {
       DigestAnalyzerOptions();
     }