This is an archive of the discontinued LLVM Phabricator instance.

[clang] NFC: Redundant code removal in SemaDecl.cpp, CheckTargetCausesMultiVersioning().
ClosedPublic

Authored by tahonermann on Mar 17 2022, 2:24 PM.

Details

Summary

This change removes redundant code in the definition of
CheckTargetCausesMultiVersioning() in SemaDecl.cpp. The removed code checked
for multiversion function support. The code immediately following the removed
code is a call to CheckMultiVersionAdditionalRules(); that function performs
the same check on entry. In both cases, the consequences of missing multiversion
function support results in the same diagnostic message being issued and the
applicable function declaration being marked as invalid.

Diff Detail

Event Timeline

tahonermann created this revision.Mar 17 2022, 2:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 2:24 PM
tahonermann published this revision for review.Mar 17 2022, 2:46 PM
tahonermann added inline comments.
clang/lib/Sema/SemaDecl.cpp
10521–10526

This is the code that makes the removed code redundant.

Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 2:46 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Mar 18 2022, 4:33 AM
erichkeane accepted this revision.Mar 18 2022, 6:49 AM