We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc44fb7 commit c782f23Copy full SHA for c782f23
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -5473,6 +5473,9 @@ static void addAllocasForDeclareTargetFunctionPointerArgs(
5473
if (!llvm::Triple(M.getTargetTriple()).isAMDGPU())
5474
return;
5475
5476
+ if (Fn->empty())
5477
+ return;
5478
+
5479
llvm::IRBuilderBase &builder = ompBuilder->Builder;
5480
llvm::OpenMPIRBuilder::InsertPointTy curInsert = builder.saveIP();
5481
unsigned int allocaAS = M.getDataLayout().getAllocaAddrSpace();
0 commit comments