Author: gclayton Date: Wed Dec 16 18:58:41 2015 New Revision: 255863 URL: http://llvm.org/viewvc/llvm-project?rev=255863&view=rev Log: Don't strip types of their typedefs when getting function types.
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=255863&r1=255862&r2=255863&view=diff ============================================================================== --- lldb/trunk/source/Symbol/ClangASTContext.cpp (original) +++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Dec 16 18:58:41 2015 @@ -4217,7 +4217,7 @@ ClangASTContext::GetFunctionArgumentType { if (type) { - const clang::FunctionProtoType* func = llvm::dyn_cast<clang::FunctionProtoType>(GetCanonicalQualType(type)); + const clang::FunctionProtoType* func = llvm::dyn_cast<clang::FunctionProtoType>(GetQualType(type)); if (func) { const uint32_t num_args = func->getNumParams(); @@ -4233,7 +4233,7 @@ ClangASTContext::GetFunctionReturnType ( { if (type) { - clang::QualType qual_type(GetCanonicalQualType(type)); + clang::QualType qual_type(GetQualType(type)); const clang::FunctionProtoType* func = llvm::dyn_cast<clang::FunctionProtoType>(qual_type.getTypePtr()); if (func) return CompilerType(getASTContext(), func->getReturnType()); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits