[cfe-commits] r61319 - in /cfe/trunk: Driver/AnalysisConsumer.cpp include/clang/Analysis/PathSensitive/GRExprEngine.h lib/Analysis/GRExprEngine.cpp test/Analysis/null-deref-ps.c

Zhongxing Xu xuzhongxing at gmail.com
Mon Dec 22 00:31:28 PST 2008


On Mon, Dec 22, 2008 at 1:33 PM, Douglas Gregor <dgregor at apple.com> wrote:

>
> On Dec 21, 2008, at 5:52 PM, Zhongxing Xu wrote:
>
>  Author: zhongxingxu
>> Date: Sun Dec 21 19:52:37 2008
>> New Revision: 61319
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=61319&view=rev
>> Log:
>> Add an option to make 'RemoveDeadBindings' a configurable behavior. This
>> enables
>> us to measure the effect of this optimization.
>>
>> Modified:
>>   cfe/trunk/Driver/AnalysisConsumer.cpp
>>   cfe/trunk/include/clang/Analysis/PathSensitive/GRExprEngine.h
>>   cfe/trunk/lib/Analysis/GRExprEngine.cpp
>>   cfe/trunk/test/Analysis/null-deref-ps.c
>>
>
> I'm seeing this warning when compiling GRExprEngine.cpp:
>
> /Users/dgregor/Projects/llvm/tools/clang/lib/Analysis/../../include/clang/Analysis/PathSensitive/GRExprEngine.h:
> In constructor 'clang::GRExprEngine::GRExprEngine(clang::CFG&, clang::Decl&,
> clang::ASTContext&, clang::LiveVariables&, bool, clang::StoreManager*
> (*)(clang::GRStateManager&), clang::ConstraintManager*
> (*)(clang::GRStateManager&))':
> /Users/dgregor/Projects/llvm/tools/clang/lib/Analysis/../../include/clang/Analysis/PathSensitive/GRExprEngine.h:97:
> warning: 'clang::GRExprEngine::PurgeDead' will be initialized after
> /Users/dgregor/Projects/llvm/tools/clang/lib/Analysis/../../include/clang/Analysis/PathSensitive/GRExprEngine.h:65:
> warning:   'clang::GRStmtNodeBuilder<clang::GRState>*
> clang::GRExprEngine::Builder'
> GRExprEngine.cpp:120: warning:   when initialized here
>
> Could you change the initialization order to eliminate this warning?
>
>        - Doug
>

Fixed. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081222/e6196cb1/attachment.html>


More information about the cfe-commits mailing list