[PATCH] D26636: patch for llvm/clang bug 25965, suppress warning diagnostic on float-to-bool conversion when in condition context
Melanie Blower via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 22 06:48:03 PST 2016
mibintc added a comment.
BTW I tried a couple different approaches to suppress the message.
One of them was to call IgnoreParenImpCasts(). This worked great to suppress the unwanted diagnostic but the call also inhibited constant folding and dead code elimination, so there were many test failures. I couldn't find any documentation about when and where a call to IgnoreParenImpCasts is appropriate. Use with care.
More information about the cfe-commits