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 fb41200 commit ac846ceCopy full SHA for ac846ce
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
@@ -1911,7 +1911,8 @@ void CGOpenMPRuntimeGPU::emitReduction(
1911
CGF.AllocaInsertPt->getIterator());
1912
InsertPointTy CodeGenIP(CGF.Builder.GetInsertBlock(),
1913
CGF.Builder.GetInsertPoint());
1914
- llvm::OpenMPIRBuilder::LocationDescription OmpLoc(CodeGenIP);
+ llvm::OpenMPIRBuilder::LocationDescription OmpLoc(
1915
+ CodeGenIP, CGF.SourceLocToDebugLoc(Loc));
1916
llvm::SmallVector<llvm::OpenMPIRBuilder::ReductionInfo> ReductionInfos;
1917
1918
CodeGenFunction::OMPPrivateScope Scope(CGF);
0 commit comments