Skip to content

Commit 785ab45

Browse files
committed
[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.
1 parent ea443ee commit 785ab45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4691,8 +4691,6 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction(
46914691
const Decl *D = GD.getDecl();
46924692

46934693
std::string NameWithoutMultiVersionMangling;
4694-
// Any attempts to use a MultiVersion function should result in retrieving
4695-
// the iFunc instead. Name Mangling will handle the rest of the changes.
46964694
if (const FunctionDecl *FD = cast_or_null<FunctionDecl>(D)) {
46974695
// For the device mark the function as one that should be emitted.
46984696
if (getLangOpts().OpenMPIsTargetDevice && OpenMPRuntime &&
@@ -4710,6 +4708,8 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction(
47104708
}
47114709
}
47124710

4711+
// Any attempts to use a MultiVersion function should result in retrieving
4712+
// the iFunc instead. Name Mangling will handle the rest of the changes.
47134713
if (FD->isMultiVersion()) {
47144714
UpdateMultiVersionNames(GD, FD, MangledName);
47154715
if (!IsForDefinition) {

0 commit comments

Comments
 (0)