[llvm] aadf606 - Fix #110001 build error.
Akash Banerjee via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 07:56:25 PST 2024
Author: Akash Banerjee
Date: 2024-12-18T15:55:56Z
New Revision: aadf606d9046c16b86f17ed0d2778749922bac2e
URL: https://github.com/llvm/llvm-project/commit/aadf606d9046c16b86f17ed0d2778749922bac2e
DIFF: https://github.com/llvm/llvm-project/commit/aadf606d9046c16b86f17ed0d2778749922bac2e.diff
LOG: Fix #110001 build error.
Added:
Modified:
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
index cc23d038d80443..9a7c7f72711cc5 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
@@ -2916,7 +2916,7 @@ class OpenMPIRBuilder {
function_ref<MapInfosTy &(InsertPointTy CodeGenIP, llvm::Value *PtrPHI,
llvm::Value *BeginArg)>
PrivAndGenMapInfoCB,
- llvm::Type *ElemTy, StringRef FuncName = {},
+ llvm::Type *ElemTy, StringRef FuncName,
function_ref<bool(unsigned int, Function **)> CustomMapperCB = nullptr);
/// Generator for '#omp target data'
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index fab85f6926ddaa..0d8dbbe3a8a718 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -7810,8 +7810,6 @@ Function *OpenMPIRBuilder::emitUserDefinedMapper(
SmallString<64> TyStr;
raw_svector_ostream Out(TyStr);
- if (FuncName == "")
- FuncName = StringRef{createPlatformSpecificName({"omp_mapper"})};
Function *MapperFn =
Function::Create(FnTy, GlobalValue::InternalLinkage, FuncName, M);
MapperFn->addFnAttr(Attribute::NoInline);
More information about the llvm-commits
mailing list