Skip to content

Commit

Permalink
VMCoreTests/PassManagerTest.cpp: Appease msvc not to do "using llvm::…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
chapuni committed Dec 4, 2012
1 parent a1514e2 commit 4cd0a82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unittests/VMCore/PassManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cd0a82

Please sign in to comment.