[PATCH] Fix uninitialized warning in llvm/lib/IR/DataLayout.cpp

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jan 7 12:22:29 PST 2014


I thought we explicitly disable this warning because it was too noisy, no?

On 7 January 2014 10:52, Cameron McInally <cameron.mcinally at nyu.edu> wrote:
> Hey guys,
>
> When compiling LLVM with GCC 4.6.3, the following warning appears when
> the -Wuninitialized option is specified:
>
>> llvm/lib/IR/DataLayout.cpp:200:17: warning: 'Result' may be used uninitialized in this function [-Wuninitialized]
>
> Attached is a small patch to initialize Result to 0.
>
> Tx,
> Cameron
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list