[PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 20:19:30 PDT 2016


ABataev added inline comments.

================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4257
@@ +4256,3 @@
+hasEnclosingOpenMPDirective(const Stmt *Body) {
+  const SK *S = nullptr;
+  // keep iterating until we find an LF or not an SK or a nullptr
----------------
You don't need `SK`, because `body_front()` member function exists only in `CompoundStmt`.


Repository:
  rL LLVM

http://reviews.llvm.org/D18474





More information about the cfe-commits mailing list