Skip to content

Commit 20ba97b

Browse files
committed
[clang][OpenMP] Fix missing DI for __kmpc_global_thread_num
1 parent 4b2ba5a commit 20ba97b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,7 @@ llvm::Value *CGOpenMPRuntime::getThreadID(CodeGenFunction &CGF,
14411441
setLocThreadIdInsertPt(CGF);
14421442
CGBuilderTy::InsertPointGuard IPG(CGF.Builder);
14431443
CGF.Builder.SetInsertPoint(Elem.second.ServiceInsertPt);
1444+
auto DL = ApplyDebugLocation::CreateDefaultArtificial(CGF, Loc);
14441445
llvm::CallInst *Call = CGF.Builder.CreateCall(
14451446
OMPBuilder.getOrCreateRuntimeFunction(CGM.getModule(),
14461447
OMPRTL___kmpc_global_thread_num),

0 commit comments

Comments
 (0)