[Lldb-commits] [lldb] r255863 - Don't strip types of their typedefs when getting function types.

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 16 16:58:41 PST 2015


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




More information about the lldb-commits mailing list