[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 14 00:56:30 PDT 2017

Hahnfeld added inline comments.

Comment at: lib/Driver/ToolChain.cpp:851
+      XOpenMPTargetArg->setBaseArg(A);
+      A = XOpenMPTargetArg.release();
+      DAL->append(A);
This is a memory leak that is currently triggered in `tests/Driver/openmp-offload-gpu.c` and found by ASan. How to fix this? I'm not really familiar with OptTable...


More information about the cfe-commits mailing list