[PATCH] D19623: [libc++] Initialize local doubles to 0.0.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 27 14:44:10 PDT 2016
rsmith added a subscriber: rsmith.
rsmith added a comment.
I don't know how the libc++ folks feel about this, but our usual policy in Clang and LLVM is that we don't add bogus initializers to shut up incorrect "maybe used uninitialized" compiler warnings, because these initializers prevent tools like MSan and valgrind from catching the bug if the variable ever is actually used uninitialized. For this reason, we turn off the portion of GCC's -Wuninitialized warning that has false positives too.
http://reviews.llvm.org/D19623
More information about the cfe-commits
mailing list