Possibly fix MSVC compilation after r256054.
authorJames Y Knight <jyknight@google.com>
Sat, 19 Dec 2015 00:53:22 +0000 (00:53 +0000)
committerJames Y Knight <jyknight@google.com>
Sat, 19 Dec 2015 00:53:22 +0000 (00:53 +0000)
I don't have any way to test MSVC compilation, but maybe this will fix
the error:

llvm/Support/TrailingObjects.h(286) : error C3210: 'TrailingObjectsBase' : access declaration can only be applied to a base class member
llvm/Support/TrailingObjects.h(337) : see reference to class template instantiation 'llvm::TrailingObjects<BaseTy,TrailingTys...>' being compiled
llvm/Support/TrailingObjects.h(286) : error C2602: 'llvm::trailing_objects_internal::TrailingObjectsBase::OverloadToken' is not a member of a base class of 'llvm::TrailingObjects<BaseTy,TrailingTys...>'
llvm/Support/TrailingObjects.h(91) : see declaration of 'llvm::trailing_objects_internal::TrailingObjectsBase::OverloadToken'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256068 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/TrailingObjects.h

index 02dfad7954a541b6ee349140e5e1892580dc4330..1561e62261dde3df280cf1b49d19d26563f1e2d1 100644 (file)
@@ -283,7 +283,7 @@ class TrailingObjects : private trailing_objects_internal::TrailingObjectsImpl<
 
 public:
   // make this (privately inherited) class public.
-  using TrailingObjectsBase::OverloadToken;
+  using ParentType::OverloadToken;
 
   /// Returns a pointer to the trailing object array of the given type
   /// (which must be one of those specified in the class template). The