You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DXC emits DW_LANG_C_plus_plus instead of DW_LANG_HLSL for HLSL #9087
In the tested DXC build, this appears to affect virtually any HLSL shader compiled with debug information: the emitted DICompileUnit identifies the source language as DW_LANG_C_plus_plus. The issue is independent of specific shader constructs; the compile-unit language selection in CGDebugInfo::CreateCompileUnit() uses the C++ language option without separately handling HLSL. The compile unit should identify the source language as DW_LANG_HLSL, so debug consumers can correctly identify HLSL shaders and downstream DWARF generators can preserve the correct DW_AT_language.
Steps to Reproduce
Compile any valid HLSL shader with -Zi -Qembed_debug and emit a textual DXIL listing with -Fc. Use the shader's usual entry point, target profile, include paths, and defines. For example, for a compute shader with entry point main:
Activity