[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Added a check for the specialization existence (PR #154123)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 9 06:20:50 PDT 2025
================
@@ -959,6 +959,9 @@ CompilerType TypeSystemClang::GetBuiltinTypeForDWARFEncodingAndBitSize(
if (type_name == "long double" &&
QualTypeMatchesBitSize(bit_size, ast, ast.LongDoubleTy))
return GetType(ast.LongDoubleTy);
+ if (type_name == "__bf16" &&
----------------
tgs-sc wrote:
Don't you think there is an error in the test?
Test:
```
Foo<_Float16, _Float16(1.0)> temp7;
Foo<__bf16, __bf16(1.0)> temp8;
```
Check:
```
value = self.expect_expr("temp8", result_type="Foo<__fp16, __fp16>")
self.assertFalse(value.GetType().GetTemplateArgumentValue(target, 1))
```
Current output:
```
AssertionError: 'Foo<__fp16, __fp16>' != 'Foo<__bf16, __bf16>'
- Foo<__fp16, __fp16>
? - -
+ Foo<__bf16, __bf16>
? + +
```
https://github.com/llvm/llvm-project/pull/154123
More information about the lldb-commits
mailing list