[PATCH] D121957: [clang] NFC: Redundant code removal in SemaDecl.cpp, CheckTargetCausesMultiVersioning().
Tom Honermann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 21 10:40:16 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG01b2e0567c54: [clang] NFC: Redundant code removal in SemaDecl.cpp… (authored by tahonermann).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121957/new/
https://reviews.llvm.org/D121957
Files:
clang/lib/Sema/SemaDecl.cpp
Index: clang/lib/Sema/SemaDecl.cpp
===================================================================
--- clang/lib/Sema/SemaDecl.cpp
+++ clang/lib/Sema/SemaDecl.cpp
@@ -10610,13 +10610,6 @@
return false;
// Otherwise, this decl causes MultiVersioning.
- if (!S.getASTContext().getTargetInfo().supportsMultiVersioning()) {
- S.Diag(NewFD->getLocation(), diag::err_multiversion_not_supported);
- S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
- NewFD->setInvalidDecl();
- return true;
- }
-
if (CheckMultiVersionAdditionalRules(S, OldFD, NewFD, true,
MultiVersionKind::Target)) {
NewFD->setInvalidDecl();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121957.417016.patch
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220321/e4a135d2/attachment.bin>
More information about the cfe-commits
mailing list