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
Debug info for __builtin_LinAlgMatrix has an uninitialized DWARF encoding #9183
Bitcode loads fine, but the text parser caps encoding at 255, so the disassembly won't reassemble. Anything that round-trips through .ll (FileCheck/opt tests, IDxcAssembler) fails with:
value for 'encoding' too large, limit is 255
The cause is in CGDebugInfo::CreateType(const BuiltinType *). It declares Encoding without initializing it, and the switch has no BuiltinType::LinAlgMatrix case. So createBasicType gets whatever was on the stack. At -Od I happened to get 0, at -O3 I get a different large number each run.
Seen at commit 680e525, two commits before the v1.10.2611 tag. The code is unchanged on main. The public v1.10.2611 dxc.exe happened to emit no encoding (0) when I tried it, since the value is just whatever is on the stack.
Possible fix: add a LinAlgMatrix case, either as an opaque struct or a basic type with a real encoding. Also initialize Encoding so the next new builtin type doesn't hit the same bug.
Activity