aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-13 19:49:53 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-13 19:49:53 +0000
commita33d9b4ebf732a5da6d56fd7319ff6c020789b1c (patch)
treef6636ad3c1737c0b1c95c62eaf5850e0159a8465 /lib/Sema
parent6bad354120ce0d35901e86ca63e5534b7b9ed092 (diff)
Disable access control by default. It can be enabled with the -faccess-control option. When we have better support for it, we can enable it by default again.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema')
-rw-r--r--lib/Sema/SemaAccess.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaAccess.cpp b/lib/Sema/SemaAccess.cpp
index cc212434b7..b832d38d1d 100644
--- a/lib/Sema/SemaAccess.cpp
+++ b/lib/Sema/SemaAccess.cpp
@@ -53,6 +53,9 @@ bool Sema::CheckBaseClassAccess(QualType Derived, QualType Base,
assert(Paths.isRecordingPaths() &&
"Can't check base class access without recorded paths");
+ if (!getLangOptions().AccessControl)
+ return false;
+
const CXXBaseSpecifier *InacessibleBase = 0;
const CXXRecordDecl* CurrentClassDecl = 0;