ABataev added inline comments.
================ Comment at: clang/lib/Driver/ToolChains/Clang.cpp:4028-4030 + Arg *SYCLArg = Args.getLastArg(options::OPT_fsycl, options::OPT_fno_sycl); + if (SYCLArg) + IsSYCL = SYCLArg->getOption().matches(options::OPT_fsycl); ---------------- I suggest to use `hasFlag` function, something like this: ``` if (Args.hasFlag(options::OPT_fsycl, options::OPT_fno_sycl, false)) CmdArgs.push_back("-fsycl-is-device"); ``` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D74048/new/ https://reviews.llvm.org/D74048 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits