Author: davide Date: Mon Apr 17 13:24:18 2017 New Revision: 300476 URL: http://llvm.org/viewvc/llvm-project?rev=300476&view=rev Log: [ClangASTContext] Placate `casts away qualifiers` warnings from GCC.
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=300476&r1=300475&r2=300476&view=diff ============================================================================== --- lldb/trunk/source/Symbol/ClangASTContext.cpp (original) +++ lldb/trunk/source/Symbol/ClangASTContext.cpp Mon Apr 17 13:24:18 2017 @@ -4484,7 +4484,8 @@ ClangASTContext::GetNumMemberFunctions(l const clang::ObjCInterfaceType *objc_interface_type = objc_class_type->getInterfaceType(); if (objc_interface_type && - GetCompleteType((lldb::opaque_compiler_type_t)objc_interface_type)) { + GetCompleteType(static_cast<lldb::opaque_compiler_type_t>( + const_cast<clang::ObjCInterfaceType *>(objc_interface_type)))) { clang::ObjCInterfaceDecl *class_interface_decl = objc_interface_type->getDecl(); if (class_interface_decl) { @@ -4592,7 +4593,8 @@ ClangASTContext::GetMemberFunctionAtInde const clang::ObjCInterfaceType *objc_interface_type = objc_class_type->getInterfaceType(); if (objc_interface_type && - GetCompleteType((lldb::opaque_compiler_type_t)objc_interface_type)) { + GetCompleteType(static_cast<lldb::opaque_compiler_type_t>( + const_cast<clang::ObjCInterfaceType *>(objc_interface_type)))) { clang::ObjCInterfaceDecl *class_interface_decl = objc_interface_type->getDecl(); if (class_interface_decl) { @@ -5660,7 +5662,8 @@ uint32_t ClangASTContext::GetNumFields(l const clang::ObjCInterfaceType *objc_interface_type = objc_class_type->getInterfaceType(); if (objc_interface_type && - GetCompleteType((lldb::opaque_compiler_type_t)objc_interface_type)) { + GetCompleteType(static_cast<lldb::opaque_compiler_type_t>( + const_cast<clang::ObjCInterfaceType *>(objc_interface_type)))) { clang::ObjCInterfaceDecl *class_interface_decl = objc_interface_type->getDecl(); if (class_interface_decl) { @@ -5807,7 +5810,8 @@ CompilerType ClangASTContext::GetFieldAt const clang::ObjCInterfaceType *objc_interface_type = objc_class_type->getInterfaceType(); if (objc_interface_type && - GetCompleteType((lldb::opaque_compiler_type_t)objc_interface_type)) { + GetCompleteType(static_cast<lldb::opaque_compiler_type_t>( + const_cast<clang::ObjCInterfaceType *>(objc_interface_type)))) { clang::ObjCInterfaceDecl *class_interface_decl = objc_interface_type->getDecl(); if (class_interface_decl) { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits