Skip to content

Commit

Permalink
[Offload] Fix NVPTX global entry names
Browse files Browse the repository at this point in the history
Summary:
This was missed, the NVPTX globals cannot use a `.`.
  • Loading branch information
jhuber6 committed Feb 21, 2024
1 parent f037e70 commit 3ee8c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Frontend/Offloading/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void offloading::emitOffloadingEntry(Module &M, Constant *Addr, StringRef Name,
getOffloadingEntryInitializer(M, Addr, Name, Size, Flags, Data);

StringRef Prefix =
Triple.isNVPTX() ? "$omp_offloading$entry." : ".omp_offloading.entry.";
Triple.isNVPTX() ? "$omp_offloading$entry$" : ".omp_offloading.entry.";
auto *Entry = new GlobalVariable(
M, getEntryTy(M),
/*isConstant=*/true, GlobalValue::WeakAnyLinkage, EntryInitializer,
Expand Down

0 comments on commit 3ee8c93

Please sign in to comment.