[PATCH] D73188: [AST] Improve overflow diagnostics for fixed-point constant evaluation.

Bevin Hansson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 22 06:33:35 PST 2020


ebevhan created this revision.
ebevhan added reviewers: rjmccall, leonardchan, bjope.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Diagnostics for overflow were not being produced for fixed-point
evaluation. This patch refactors a bit of the evaluator and adds
a proper diagnostic for these cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73188

Files:
  clang/include/clang/Basic/DiagnosticASTKinds.td
  clang/lib/AST/ExprConstant.cpp
  clang/test/Frontend/fixed_point_errors.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73188.239567.patch
Type: text/x-patch
Size: 6656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200122/9e0e2d20/attachment.bin>


More information about the cfe-commits mailing list