Don't strip types of their typedefs when getting function types.

llvm-svn: 255863
This commit is contained in:
Greg Clayton 2015-12-17 00:58:41 +00:00
parent 50de45dcc1
commit 8b8874edbc
1 changed files with 2 additions and 2 deletions

View File

@ -4217,7 +4217,7 @@ ClangASTContext::GetFunctionArgumentTypeAtIndex (lldb::opaque_compiler_type_t ty
{
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 (lldb::opaque_compiler_type_t type)
{
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());