ojhunt wrote:

> We have tracked down a new and spurious "This variable is used uninitialized" 
> to this PR. I'm working on a reduced test case now. It looks like this:
> 
> ```
> <redacted>.cpp:XXX+2:13: error: variable 'new_section' is uninitialized when 
> used here [-Werror,-Wuninitialized]
> 572 |             new_section->SetNext(file_mod->Next()) ;
> 
>       |             ^~~~~~~~~~~
> <redacted>.cpp:XXX:33: note: initialize the variable 'new_section' to silence 
> this warning
>   570 |             FileMod *new_section = new FileMod(insert_line, 
> insert_col) ;
>       |                                 ^
> ```
> 
> There is no control flow on line XXX+1.

hmmmm while you minimize I'll see if I can see any obvious path that would lead 
to this

https://github.com/llvm/llvm-project/pull/113510
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to