From 323c30c5f465208778d7792a01af70a4f4be8b78 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 16 Dec 2009 00:13:24 +0000 Subject: Explicit template instantiations must happen in the template's immediately enclosing namespace. Caught by clang++. llvm-svn: 91480 --- llvm/lib/CodeGen/MachineLoopInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/MachineLoopInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineLoopInfo.cpp b/llvm/lib/CodeGen/MachineLoopInfo.cpp index 63f4f18e4d5..d561a5bb8c9 100644 --- a/llvm/lib/CodeGen/MachineLoopInfo.cpp +++ b/llvm/lib/CodeGen/MachineLoopInfo.cpp @@ -19,12 +19,14 @@ #include "llvm/CodeGen/Passes.h" using namespace llvm; +namespace llvm { #define MLB class LoopBase TEMPLATE_INSTANTIATION(MLB); #undef MLB #define MLIB class LoopInfoBase TEMPLATE_INSTANTIATION(MLIB); #undef MLIB +} char MachineLoopInfo::ID = 0; static RegisterPass -- cgit v1.2.3