[PATCH] D28231: -Wunreachable-code: Avoid multiple diagnostics that are triggered by the same source range and fix the unary operator fixit source range
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 4 04:36:33 PST 2017
arphaman updated this revision to Diff 83032.
arphaman added a comment.
You're right, the fixit for `if (!s->p || 1)` is wrong, but that was another existing bug. The updated patch fixes this issue.
Repository:
rL LLVM
https://reviews.llvm.org/D28231
Files:
lib/Analysis/ReachableCode.cpp
lib/Sema/AnalysisBasedWarnings.cpp
test/Sema/warn-unreachable.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28231.83032.patch
Type: text/x-patch
Size: 4777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170104/32c42be0/attachment.bin>
More information about the cfe-commits
mailing list