From 5732f242ee119d4a10bff8b4a19c711df6f559b2 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 27 Jan 2011 09:15:11 +0000 Subject: [PATCH] Improved support for GCC complex integers. llvm-svn: 124371 --- lldb/source/Symbol/ClangASTContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index e179bdefd1d8..161ffae5ce68 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -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();