[PATCH] D121955: [clang] NFC: Dead code removal in SemaDecl.cpp, CheckMultiVersionFunction().

Tom Honermann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 10:40:11 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG77472a659e25: [clang] NFC: Dead code removal in SemaDecl.cpp, CheckMultiVersionFunction(). (authored by tahonermann).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121955/new/

https://reviews.llvm.org/D121955

Files:
  clang/lib/Sema/SemaDecl.cpp


Index: clang/lib/Sema/SemaDecl.cpp
===================================================================
--- clang/lib/Sema/SemaDecl.cpp
+++ clang/lib/Sema/SemaDecl.cpp
@@ -10931,11 +10931,6 @@
       break;
     }
   }
-  // Handle the target potentially causes multiversioning case.
-  if (!OldFD->isMultiVersion() && MVType == MultiVersionKind::Target)
-    return CheckTargetCausesMultiVersioning(S, OldFD, NewFD, NewTA,
-                                            Redeclaration, OldDecl,
-                                            MergeTypeWithPrevious, Previous);
 
   // At this point, we have a multiversion function decl (in OldFD) AND an
   // appropriate attribute in the current function decl.  Resolve that these are


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121955.417015.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220321/8bf85e27/attachment-0001.bin>


More information about the cfe-commits mailing list