This revision was automatically updated to reflect the committed changes.
Closed by commit rG985a72b6b3e7: [clang][Diagnostics] Provide source range to
integer-overflow warnings (authored by hazohelet).
Changed prior to commit:
https://reviews.llvm.org/D157383?vs=548149&id=551746#toc
Repositor
tbaeder accepted this revision.
tbaeder added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/AST/Interp/Interp.h:530-535
if (S.checkingForUndefinedBehavior()) {
SmallString<32> Trunc;
APResult.trunc(Result.bitWidth()).toString
hazohelet added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157383/new/
https://reviews.llvm.org/D157383
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/c
hazohelet added inline comments.
Comment at: clang/lib/AST/Interp/Interp.h:530-535
if (S.checkingForUndefinedBehavior()) {
SmallString<32> Trunc;
APResult.trunc(Result.bitWidth()).toString(Trunc, 10);
auto Loc = E->getExprLoc();
-S.report(Loc, diag::warn_int
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/Interp.h:530-535
if (S.checkingForUndefinedBehavior()) {
SmallString<32> Trunc;
APResult.trunc(Result.bitWidth()).toString(Trunc, 10);
auto Loc = E->getExprLoc();
-S.report(Loc, diag::warn_integ
hazohelet added inline comments.
Comment at: clang/lib/AST/Interp/Interp.h:530-535
if (S.checkingForUndefinedBehavior()) {
SmallString<32> Trunc;
APResult.trunc(Result.bitWidth()).toString(Trunc, 10);
auto Loc = E->getExprLoc();
-S.report(Loc, diag::warn_int
hazohelet created this revision.
hazohelet added reviewers: aaron.ballman, tbaeder, cjdb.
Herald added a project: All.
hazohelet requested review of this revision.
Herald added a project: clang.
BEFORE:
overflow.cpp:1:21: warning: overflow in expression; result is -2147483648
with type 'int' [