From 4cd0a82fbf0b624bb5925b711204451c2734007e Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 4 Dec 2012 07:25:24 +0000 Subject: [PATCH] VMCoreTests/PassManagerTest.cpp: Appease msvc not to do "using llvm::Pass" in class template. FIXME: I have not checked whether to be compiled on msvc11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169225 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/VMCore/PassManagerTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/VMCore/PassManagerTest.cpp b/unittests/VMCore/PassManagerTest.cpp index 321904270af..b5015d16ce7 100644 --- a/unittests/VMCore/PassManagerTest.cpp +++ b/unittests/VMCore/PassManagerTest.cpp @@ -148,8 +148,10 @@ namespace llvm { template struct PassTest : public PassTestBase

{ public: +#ifndef _MSC_VER // MSVC complains that Pass is not base class. using llvm::Pass::doInitialization; using llvm::Pass::doFinalization; +#endif virtual bool doInitialization(T &t) { EXPECT_FALSE(PassTestBase

::initialized); PassTestBase

::initialized = true;