Commit Graph

2 Commits

Author SHA1 Message Date
Richard Trieu 955231ddf6 Broaden -Wstring-conversion to catch string literals in logical or expressions.
Previously, string literals were ignored in all logical expressions.  This
reduces it to only ignore in logical and expressions.

assert(0 && "error"); // No warning
assert(0 || "error"); // Warn

Fixes PR17565

llvm-svn: 200056
2014-01-25 01:10:35 +00:00
Richard Trieu 1db746afbf Move string literal to bool conversion into its own warning flag -Wstring-conversion.
llvm-svn: 140574
2011-09-26 22:38:21 +00:00