[PATCH] D11475: [OPENMP] fix the assert in emitting captured code inside the target data construct
Kelvin Li
kkwli0 at gmail.com
Thu Jul 23 13:39:27 PDT 2015
kkwli0 created this revision.
kkwli0 added reviewers: rsmith, hfinkel, sfantao, ABataev, fraggamuffin.
kkwli0 added subscribers: Hahnfeld, cfe-commits.
This patch is to fix the assert in emitting captured code in the target data construct.
http://reviews.llvm.org/D11475
Files:
lib/CodeGen/CGStmtOpenMP.cpp
Index: lib/CodeGen/CGStmtOpenMP.cpp
===================================================================
--- lib/CodeGen/CGStmtOpenMP.cpp
+++ lib/CodeGen/CGStmtOpenMP.cpp
@@ -2128,5 +2128,7 @@
// emit the code inside the construct for now
auto CS = cast<CapturedStmt>(S.getAssociatedStmt());
- EmitStmt(CS->getCapturedStmt());
+ CGM.getOpenMPRuntime().emitInlinedDirective(
+ *this, OMPD_target_data,
+ [&CS](CodeGenFunction &CGF) { CGF.EmitStmt(CS->getCapturedStmt()); });
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11475.30521.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150723/8e665483/attachment.bin>
More information about the cfe-commits
mailing list