Skip to content
Commit 955231dd authored by Richard Trieu's avatar Richard Trieu
Browse files

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
parent 6bd95b8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment