[clang] [Driver][SYCL] Error on C inputs when compiling with -fsycl (PR #200318)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 3 05:02:53 PDT 2026
================
@@ -3227,7 +3228,8 @@ void Driver::BuildInputs(const ToolChain &TC, DerivedArgList &Args,
if (DiagnoseInputExistence(Value, types::TY_C,
/*TypoCorrect=*/false)) {
Arg *InputArg = makeInputArg(Args, Opts, A->getValue());
- Inputs.push_back(std::make_pair(types::TY_C, InputArg));
+ Inputs.push_back(
----------------
AaronBallman wrote:
I'd like to see a clang-cl test case which passes `/TC` because this seems incorrect to me; won't this quietly switch the file type to C++ in `-fsycl` mode?
https://github.com/llvm/llvm-project/pull/200318
More information about the cfe-commits
mailing list