aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2025-04-25 09:45:06 -0700
committererichkeane <ekeane@nvidia.com>2025-04-25 09:45:06 -0700
commit785ab45c2b300ba6291d8fb21762eabc050275f6 (patch)
treed501a0aacb5f42571eb81aae6ae19eb9ce53d052 /clang/lib/CodeGen/CodeGenModule.cpp
parentea443eeb2ab8ed49ffb783c2025fed6629a36f10 (diff)
downloadllvm-785ab45c2b300ba6291d8fb21762eabc050275f6.zip
llvm-785ab45c2b300ba6291d8fb21762eabc050275f6.tar.gz
llvm-785ab45c2b300ba6291d8fb21762eabc050275f6.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
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<FunctionDecl>(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) {