Skip to content

Commit aadf606

Browse files
committed
Fix #110001 build error.
1 parent 6993d32 commit aadf606

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2916,7 +2916,7 @@ class OpenMPIRBuilder {
29162916
function_ref<MapInfosTy &(InsertPointTy CodeGenIP, llvm::Value *PtrPHI,
29172917
llvm::Value *BeginArg)>
29182918
PrivAndGenMapInfoCB,
2919-
llvm::Type *ElemTy, StringRef FuncName = {},
2919+
llvm::Type *ElemTy, StringRef FuncName,
29202920
function_ref<bool(unsigned int, Function **)> CustomMapperCB = nullptr);
29212921

29222922
/// Generator for '#omp target data'

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7810,8 +7810,6 @@ Function *OpenMPIRBuilder::emitUserDefinedMapper(
78107810

78117811
SmallString<64> TyStr;
78127812
raw_svector_ostream Out(TyStr);
7813-
if (FuncName == "")
7814-
FuncName = StringRef{createPlatformSpecificName({"omp_mapper"})};
78157813
Function *MapperFn =
78167814
Function::Create(FnTy, GlobalValue::InternalLinkage, FuncName, M);
78177815
MapperFn->addFnAttr(Attribute::NoInline);

0 commit comments

Comments
 (0)