This is an archive of the discontinued LLVM Phabricator instance.

[clang] detect integer overflow through temporary values
ClosedPublic

Authored by lnihlen on Jun 30 2023, 12:49 PM.

Diff Detail

Event Timeline

lnihlen created this revision.Jun 30 2023, 12:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 12:49 PM
lnihlen requested review of this revision.Jun 30 2023, 12:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 12:49 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
cjdb added a comment.Jun 30 2023, 1:01 PM

Fixes GH63629.

Would you mind changing this to Fixes #63629 please? That'll get it connected in GitHub.

The patch looks good, would you mind adding some release notes before I give LGTM please?

shafik added a subscriber: shafik.Jun 30 2023, 1:57 PM

Nice catch, I missed that in my last fix: https://reviews.llvm.org/D137897

shafik accepted this revision.EditedJun 30 2023, 1:57 PM
shafik added a reviewer: shafik.

LGTM after adding release note.

This revision is now accepted and ready to land.Jun 30 2023, 1:57 PM
lnihlen updated this revision to Diff 536413.Jun 30 2023, 1:57 PM

Add release note.

lnihlen edited the summary of this revision. (Show Details)Jun 30 2023, 1:58 PM

Added release note, fixed commit log. PTAL, thanks!

aeubanks added inline comments.
clang/lib/Sema/SemaChecking.cpp
15215

nit: clang:: isn't necessary

lnihlen updated this revision to Diff 536466.Jun 30 2023, 3:41 PM

remove extrneous clang::

cjdb accepted this revision.Jun 30 2023, 3:47 PM
This revision was landed with ongoing or failed builds.Jun 30 2023, 4:32 PM
This revision was automatically updated to reflect the committed changes.