diff options
author | Greg Clayton <gclayton@apple.com> | 2015-12-17 00:58:41 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-12-17 00:58:41 +0000 |
commit | 8b8874edbc6f86985d8155f1a88f2b33d5360c8c (patch) | |
tree | a1d012b95d19b18f23ceac9cd5935e79b1add180 | |
parent | 50de45dcc1d95bafb79cce71268931f810113142 (diff) | |
download | bcm5719-llvm-8b8874edbc6f86985d8155f1a88f2b33d5360c8c.tar.gz bcm5719-llvm-8b8874edbc6f86985d8155f1a88f2b33d5360c8c.zip |
Don't strip types of their typedefs when getting function types.
llvm-svn: 255863
-rw-r--r-- | lldb/source/Symbol/ClangASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index d2317cf00f0..e0e7e550b0d 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -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()); |