[PATCH] D28543: Elliminates uninitialized warning for volitile varibles.
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 10 13:04:54 PST 2017
thakis added a comment.
In https://reviews.llvm.org/D28543#671953, @hfinkel wrote:
> What's the motivation for this? The placement of a local volatile variable is still under the compiler's direction, and unless the address escapes, we still assume we can reason about its aliasing (and, thus, whether or not it is initialized).
volatile means that the value can change at any time, which might initialize the variable, no?
https://reviews.llvm.org/D28543
More information about the cfe-commits
mailing list