diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-14 16:03:47 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-14 16:03:47 +0000 |
commit | 6e01dc1b840139e07b60759a5cfa42d99bef8a43 (patch) | |
tree | 1a1ee557d3a5170d5b109a5b70bdd8452a0f832f /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
parent | 92653865e605ef3d588bddcf1b595bb9d901180e (diff) | |
download | bcm5719-llvm-6e01dc1b840139e07b60759a5cfa42d99bef8a43.tar.gz bcm5719-llvm-6e01dc1b840139e07b60759a5cfa42d99bef8a43.zip |
[OPENMP][DEBUG] Fix for PR33676: Debug info for OpenMP region is broken.
After some changes in clang/LLVM debug info for task-based regions was
not generated at all. Patch fixes this problem.
llvm-svn: 310850
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index c7e74b2c570..eccf1ecff08 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -342,8 +342,8 @@ static llvm::Function *emitOutlinedFunctionPrologue( F->setDoesNotThrow(); // Generate the function. - CGF.StartFunction(CD, Ctx.VoidTy, F, FuncInfo, TargetArgs, CD->getLocation(), - CD->getBody()->getLocStart()); + CGF.StartFunction(CD, Ctx.VoidTy, F, FuncInfo, TargetArgs, + FO.S->getLocStart(), CD->getBody()->getLocStart()); unsigned Cnt = CD->getContextParamPosition(); I = FO.S->captures().begin(); for (auto *FD : RD->fields()) { |