[llvm] r256068 - Possibly fix MSVC compilation after r256054.

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 16:53:22 PST 2015


Author: jyknight
Date: Fri Dec 18 18:53:22 2015
New Revision: 256068

URL: http://llvm.org/viewvc/llvm-project?rev=256068&view=rev
Log:
Possibly fix MSVC compilation after r256054.

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'

Modified:
    llvm/trunk/include/llvm/Support/TrailingObjects.h

Modified: llvm/trunk/include/llvm/Support/TrailingObjects.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/TrailingObjects.h?rev=256068&r1=256067&r2=256068&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/TrailingObjects.h (original)
+++ llvm/trunk/include/llvm/Support/TrailingObjects.h Fri Dec 18 18:53:22 2015
@@ -283,7 +283,7 @@ class TrailingObjects : private trailing
 
 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




More information about the llvm-commits mailing list