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
diff --git a/lib/Sema/SemaAccess.cpp b/lib/Sema/SemaAccess.cpp
index cc21243..b832d38 100644
--- a/lib/Sema/SemaAccess.cpp
+++ b/lib/Sema/SemaAccess.cpp
@@ -53,6 +53,9 @@
   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;