This is an archive of the discontinued LLVM Phabricator instance.

[-Wunsafe-buffer-usage] Fix a fallthrough case in UPCStandalonePointer getFixits
ClosedPublic

Authored by t-rasmud on Jul 17 2023, 4:50 PM.

Diff Detail

Event Timeline

t-rasmud created this revision.Jul 17 2023, 4:50 PM
Herald added a project: Restricted Project. · View Herald Transcript
t-rasmud requested review of this revision.Jul 17 2023, 4:50 PM
This revision is now accepted and ready to land.Jul 18 2023, 11:08 AM
NoQ added inline comments.Jul 18 2023, 2:54 PM
clang/lib/Analysis/UnsafeBufferUsage.cpp
1512

This one's probably also incorrect, just harder to reach.

t-rasmud updated this revision to Diff 543700.Jul 24 2023, 2:26 PM
NoQ accepted this revision.Jul 25 2023, 1:16 PM

Aha great LGTM!

You can also remove both [[fallthrough]]; annotations now that there's an unconditional break in front of them.

Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2023, 1:41 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript