We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f5807e commit 5b15d9cCopy full SHA for 5b15d9c
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