From 785ab45c2b300ba6291d8fb21762eabc050275f6 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Fri, 25 Apr 2025 09:45:06 -0700 Subject: [NFC] move comment back to where it belongs. It appears that OpenMP changes caused this comment to get moved away from where it was intended, so this patch puts it back next to the multiversioning code, as intended. --- clang/lib/CodeGen/CodeGenModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index b46eaf3..e917f3c 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -4691,8 +4691,6 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction( const Decl *D = GD.getDecl(); std::string NameWithoutMultiVersionMangling; - // Any attempts to use a MultiVersion function should result in retrieving - // the iFunc instead. Name Mangling will handle the rest of the changes. if (const FunctionDecl *FD = cast_or_null(D)) { // For the device mark the function as one that should be emitted. if (getLangOpts().OpenMPIsTargetDevice && OpenMPRuntime && @@ -4710,6 +4708,8 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction( } } + // Any attempts to use a MultiVersion function should result in retrieving + // the iFunc instead. Name Mangling will handle the rest of the changes. if (FD->isMultiVersion()) { UpdateMultiVersionNames(GD, FD, MangledName); if (!IsForDefinition) { -- cgit v1.1