A minor tweak to the new volatile lvalue warning: don't warn on "(void)x", where...
authorEli Friedman <eli.friedman@gmail.com>
Thu, 24 May 2012 21:05:41 +0000 (21:05 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 24 May 2012 21:05:41 +0000 (21:05 +0000)
commitf92f6454efbd2b6cacbc563ffa131e165eba06a0
tree2ca9b554aac85eb886ad0164aa27804d3851843c
parentd65dbd8e6a919deeec13f7b8310e24b77654517a
A minor tweak to the new volatile lvalue warning: don't warn on "(void)x", where "x" refers to a local variable.  This should silence a useless warning in compiler-rt and other places.

llvm-svn: 157414
clang/lib/AST/Expr.cpp
clang/test/SemaCXX/unused.cpp