summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-12-14 09:26:19 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-12-14 09:26:19 +0000
commit33c56402d87a476d46fd4b35568843f16f0b4eec (patch)
treea35bcbb26a77a264b82b5d876c8de2f503616f26 /clang/lib/CodeGen/CGStmtOpenMP.cpp
parent870d1bcdf97da993175e8ba7a30f4cf8e25e67b6 (diff)
downloadbcm5719-llvm-33c56402d87a476d46fd4b35568843f16f0b4eec.tar.gz
bcm5719-llvm-33c56402d87a476d46fd4b35568843f16f0b4eec.zip
[OPENMP] Fix debug info for 'atomic' construct.
Debug info for statement under 'atomic' construct must point exactly to that statement, not the directive itself. llvm-svn: 255487
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index bd3c71afb28..eec476bc6b8 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -2514,7 +2514,8 @@ void CodeGenFunction::EmitOMPAtomicDirective(const OMPAtomicDirective &S) {
}
LexicalScope Scope(*this, S.getSourceRange());
- auto &&CodeGen = [&S, Kind, IsSeqCst](CodeGenFunction &CGF) {
+ auto &&CodeGen = [&S, Kind, IsSeqCst, CS](CodeGenFunction &CGF) {
+ CGF.EmitStopPoint(CS);
EmitOMPAtomicExpr(CGF, Kind, IsSeqCst, S.isPostfixUpdate(), S.getX(),
S.getV(), S.getExpr(), S.getUpdateExpr(),
S.isXLHSInRHSPart(), S.getLocStart());
OpenPOWER on IntegriCloud