Improved support for GCC complex integers.

llvm-svn: 124371
This commit is contained in:
Greg Clayton 2011-01-27 09:15:11 +00:00
parent 0c572ebc46
commit 5732f242ee
1 changed files with 1 additions and 1 deletions

View File

@ -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();