r326165 - [analyzer] Fix an uninitialized field.

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 26 18:53:30 PST 2018


Author: dergachev
Date: Mon Feb 26 18:53:30 2018
New Revision: 326165

URL: http://llvm.org/viewvc/llvm-project?rev=326165&view=rev
Log:
[analyzer] Fix an uninitialized field.

Found by the analyzer!

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h?rev=326165&r1=326164&r2=326165&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h Mon Feb 26 18:53:30 2018
@@ -50,6 +50,7 @@ class FunctionSummariesTy {
     FunctionSummary() :
       TotalBasicBlocks(0),
       InlineChecked(0),
+      MayInline(0),
       TimesInlined(0) {}
   };
 




More information about the cfe-commits mailing list