We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 518cef7 commit 43cec9dCopy full SHA for 43cec9d
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
@@ -1695,7 +1695,8 @@ void CGOpenMPRuntimeGPU::emitReduction(
1695
CGF.AllocaInsertPt->getIterator());
1696
InsertPointTy CodeGenIP(CGF.Builder.GetInsertBlock(),
1697
CGF.Builder.GetInsertPoint());
1698
- llvm::OpenMPIRBuilder::LocationDescription OmpLoc(CodeGenIP);
+ llvm::OpenMPIRBuilder::LocationDescription OmpLoc(
1699
+ CodeGenIP, CGF.SourceLocToDebugLoc(Loc));
1700
llvm::SmallVector<llvm::OpenMPIRBuilder::ReductionInfo> ReductionInfos;
1701
1702
CodeGenFunction::OMPPrivateScope Scope(CGF);
0 commit comments