summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/VMCore/PassManagerTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/VMCore/PassManagerTest.cpp')
-rw-r--r--llvm/unittests/VMCore/PassManagerTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/VMCore/PassManagerTest.cpp b/llvm/unittests/VMCore/PassManagerTest.cpp
index 321904270af..b5015d16ce7 100644
--- a/llvm/unittests/VMCore/PassManagerTest.cpp
+++ b/llvm/unittests/VMCore/PassManagerTest.cpp
@@ -148,8 +148,10 @@ namespace llvm {
template<typename T, typename P>
struct PassTest : public PassTestBase<P> {
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<P>::initialized);
PassTestBase<P>::initialized = true;
OpenPOWER on IntegriCloud