r365030 - Make a buildbot using a buggy gcc happy
Kristof Umann via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 3 05:06:11 PDT 2019
Author: szelethus
Date: Wed Jul 3 05:06:10 2019
New Revision: 365030
URL: http://llvm.org/viewvc/llvm-project?rev=365030&view=rev
Log:
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
Modified:
cfe/trunk/lib/Analysis/Dominators.cpp
Modified: cfe/trunk/lib/Analysis/Dominators.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Dominators.cpp?rev=365030&r1=365029&r2=365030&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/Dominators.cpp (original)
+++ cfe/trunk/lib/Analysis/Dominators.cpp Wed Jul 3 05:06:10 2019
@@ -8,10 +8,12 @@
#include "clang/Analysis/Analyses/Dominators.h"
-using namespace clang;
+namespace clang {
template <>
-void clang::CFGDominatorTreeImpl</*IsPostDom=*/true>::anchor() {}
+void CFGDominatorTreeImpl</*IsPostDom=*/true>::anchor() {}
template <>
-void clang::CFGDominatorTreeImpl</*IsPostDom=*/false>::anchor() {}
+void CFGDominatorTreeImpl</*IsPostDom=*/false>::anchor() {}
+
+} // end of namespace clang
More information about the cfe-commits
mailing list