Added a named container for the source QualType
in the type copy routine to make type problems
easier to debug.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@118638 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Symbol/ClangASTContext.cpp b/source/Symbol/ClangASTContext.cpp
index aa4ccb2..7d87e99 100644
--- a/source/Symbol/ClangASTContext.cpp
+++ b/source/Symbol/ClangASTContext.cpp
@@ -733,8 +733,11 @@
ASTImporter importer(diagnostics,
*dest_context, file_manager,
*source_context, file_manager);
- QualType ret = importer.Import(QualType::getFromOpaquePtr(clang_type));
- return ret.getAsOpaquePtr();
+
+ QualType src = QualType::getFromOpaquePtr(clang_type);
+ QualType dst = importer.Import(src);
+
+ return dst.getAsOpaquePtr();
}
bool