Fix an API missues in ParseTypeFromDWARF

The arguments for ClangASTContext::CreateMemberPointerType was passed
in in the wrong order.

llvm-svn: 251319
This commit is contained in:
Tamas Berghammer 2015-10-26 18:10:55 +00:00
parent 145b0fd2a0
commit c9eb2fcd7d
1 changed files with 1 additions and 1 deletions

View File

@ -1522,7 +1522,7 @@ DWARFASTParserClang::ParseTypeFromDWARF (const SymbolContext& sc,
CompilerType pointee_clang_type = pointee_type->GetForwardCompilerType ();
CompilerType class_clang_type = class_type->GetLayoutCompilerType ();
clang_type = ClangASTContext::CreateMemberPointerType(pointee_clang_type, class_clang_type);
clang_type = ClangASTContext::CreateMemberPointerType(class_clang_type, pointee_clang_type);
byte_size = clang_type.GetByteSize(nullptr);