aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-10-27 22:48:41 +0000
committerReid Kleckner <rnk@google.com>2017-10-27 22:48:41 +0000
commit2e87a21c7cac8931593bc281acf5a15f7cf591a0 (patch)
treebe7ba16dc4c9c5d325f7ca4ce2c624e858c462e8 /llvm/lib/Object/ArchiveWriter.cpp
parente58044d4324a3431be93685071643914baa886d6 (diff)
downloadllvm-2e87a21c7cac8931593bc281acf5a15f7cf591a0.zip
llvm-2e87a21c7cac8931593bc281acf5a15f7cf591a0.tar.gz
llvm-2e87a21c7cac8931593bc281acf5a15f7cf591a0.tar.bz2
[MS] Allow access to ambiguous, inaccessible direct bases
Summary: Clang typically warns that in the following class hierarchy, 'A' is inaccessible because there is no series of casts that the user can write to access it unambiguously: struct A { }; struct B : A { }; struct C : A, B { }; MSVC allows the user to convert from C* to A*, though, and we've encountered this issue in the latest Windows SDK headers. This patch allows this conversion when -fms-compatibility is set and adds a warning for it under -Wmicrosoft-inaccessible-base. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D39389 llvm-svn: 316807
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions