[all-commits] [llvm/llvm-project] b37b10: [Driver][SYCL] Treat stdin as C++ when -fsycl is a...
Wenju He via All-commits
all-commits at lists.llvm.org
Wed Jun 24 16:59:15 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b37b10d5217b992180ee0a61f343b3edb4cc083e
https://github.com/llvm/llvm-project/commit/b37b10d5217b992180ee0a61f343b3edb4cc083e
Author: Wenju He <wenju.he at intel.com>
Date: 2026-06-25 (Thu, 25 Jun 2026)
Changed paths:
M clang/lib/Driver/Driver.cpp
A clang/test/Driver/sycl-print-internal-defines.cpp
Log Message:
-----------
[Driver][SYCL] Treat stdin as C++ when -fsycl is active (#204968)
1723b7a30145 added a frontend check that rejects C inputs when SYCL mode
is active (since SYCL requires C++). The stdin path in BuildInputs
hardcoded TY_C regardless of driver mode, so `-fsycl -dM -E -` would
pass -x c to cc1 and trigger the new diagnostic.
Fix: use TY_CXX for stdin when IsSYCL.
Also, upstream a downstream test that fails due to 1723b7a30145.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list