From: Kristof Umann Date: Wed, 3 Jul 2019 12:06:10 +0000 (+0000) Subject: Make a buildbot using a buggy gcc happy X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcafa1f89419a3e6b3ede798dc8b502a937a0057;p=clang Make a buildbot using a buggy gcc happy When specializing a template in a namespace, it has to be in a namespace block, else gcc will get confused. Hopefully this fixes the issue. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365030 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/Dominators.cpp b/lib/Analysis/Dominators.cpp index 374746d78b..f7ad68673d 100644 --- a/lib/Analysis/Dominators.cpp +++ b/lib/Analysis/Dominators.cpp @@ -8,10 +8,12 @@ #include "clang/Analysis/Analyses/Dominators.h" -using namespace clang; +namespace clang { template <> -void clang::CFGDominatorTreeImpl::anchor() {} +void CFGDominatorTreeImpl::anchor() {} template <> -void clang::CFGDominatorTreeImpl::anchor() {} +void CFGDominatorTreeImpl::anchor() {} + +} // end of namespace clang