forked from OSchip/llvm-project
Improved support for GCC complex integers.
llvm-svn: 124371
This commit is contained in:
parent
0c572ebc46
commit
5732f242ee
|
@ -688,7 +688,7 @@ ClangASTContext::GetBuiltinTypeForDWARFEncodingAndBitSize (const char *type_name
|
|||
|
||||
case DW_ATE_lo_user:
|
||||
// This has been seen to mean DW_AT_complex_integer
|
||||
if (strcmp(type_name, "complex") == 0)
|
||||
if (::strstr(type_name, "complex"))
|
||||
{
|
||||
clang_type_t complex_int_clang_type = GetBuiltinTypeForDWARFEncodingAndBitSize ("int", DW_ATE_signed, bit_size/2);
|
||||
return ast->getComplexType (QualType::getFromOpaquePtr(complex_int_clang_type)).getAsOpaquePtr();
|
||||
|
|
Loading…
Reference in New Issue