[PATCH] D85778: More accurately compute the ranges of possible values for +, -, *, &, %.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 13:53:26 PDT 2020


rsmith created this revision.
rsmith added reviewers: sberg, rtrieu.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
rsmith requested review of this revision.

Continue to heuristically pick the wider of the two operands for
narrowing conversion warnings so that some_char + 1 isn't treated as
being wider than a char, but use the more accurate computation for
tautological comparison warnings.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85778

Files:
  clang/lib/Sema/SemaChecking.cpp
  clang/test/Sema/tautological-constant-compare.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85778.284883.patch
Type: text/x-patch
Size: 23692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200811/67610380/attachment-0001.bin>


More information about the cfe-commits mailing list