ABataev added inline comments.
================ Comment at: lib/Driver/ToolChains/Cuda.cpp:499 + options::OPT_fopenmp_ptx_EQ); + CC1Args.back() = (!PtxVersion.empty()) ? PtxVersion.data() : "+ptx42"; + } else ---------------- No, use `CC1Args.push_back()` here, or `CC1Args.emplace_back()`, which is even better. Why you don't want to use the code I proposed in my previous comment? Repository: rL LLVM https://reviews.llvm.org/D29660 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits