Skip to content

Commit 3ee8c93

Browse files
committed
[Offload] Fix NVPTX global entry names
Summary: This was missed, the NVPTX globals cannot use a `.`.
1 parent f037e70 commit 3ee8c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Frontend/Offloading/Utility.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void offloading::emitOffloadingEntry(Module &M, Constant *Addr, StringRef Name,
7070
getOffloadingEntryInitializer(M, Addr, Name, Size, Flags, Data);
7171

7272
StringRef Prefix =
73-
Triple.isNVPTX() ? "$omp_offloading$entry." : ".omp_offloading.entry.";
73+
Triple.isNVPTX() ? "$omp_offloading$entry$" : ".omp_offloading.entry.";
7474
auto *Entry = new GlobalVariable(
7575
M, getEntryTy(M),
7676
/*isConstant=*/true, GlobalValue::WeakAnyLinkage, EntryInitializer,

0 commit comments

Comments
 (0)