ABataev added inline comments.
================ Comment at: lib/Frontend/CompilerInstance.cpp:914-915 + // Create TargetInfo for the other side of CUDA and OpenMP compilation. + if ((getLangOpts().CUDA && !getFrontendOpts().AuxTriple.empty()) || + (getLangOpts().OpenMPIsDevice && !getFrontendOpts().AuxTriple.empty())) { auto TO = std::make_shared<TargetOptions>(); ---------------- It's better to check `!getFrontendOpts().AuxTriple.empty()` only once in this condition Repository: rL LLVM https://reviews.llvm.org/D29339 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits