Try to make GCC5 happy about the CfgTraits thing
authorHans Wennborg <hans@chromium.org>
Tue, 20 Oct 2020 15:06:35 +0000 (17:06 +0200)
committerHans Wennborg <hans@chromium.org>
Tue, 20 Oct 2020 15:18:42 +0000 (17:18 +0200)
commit03a5f7ce12e2111c8b7bc5a95cff4c51b516250f
treeca3c39319e988936315ff8a3b49ac915752e9eb1
parent234c47ae2a8e1877de8c661d5bb862ba952eabf9
Try to make GCC5 happy about the CfgTraits thing

It was failing with:

In file included from /work/llvm.monorepo/clang/lib/Analysis/Dominators.cpp:9:0:
/work/llvm.monorepo/clang/include/clang/Analysis/Analyses/Dominators.h: At global scope:
/work/llvm.monorepo/clang/include/clang/Analysis/Analyses/Dominators.h:111:26:
error: specialization of ‘template<class CfgRelatedTypeT> struct llvm::CfgTraitsFor’ in different namespace [-fpermissive]
 template <> struct llvm::CfgTraitsFor<clang::CFGBlock> {
                          ^
In file included from /work/llvm.monorepo/clang/include/clang/Analysis/Analyses/Dominators.h:21:0,
                 from /work/llvm.monorepo/clang/lib/Analysis/Dominators.cpp:9:
/work/llvm.monorepo/llvm/include/llvm/Support/CfgTraits.h:294:44:
error:   from definition of ‘template<class CfgRelatedTypeT> struct llvm::CfgTraitsFor’ [-fpermissive]
 template <typename CfgRelatedTypeT> struct CfgTraitsFor;
                                            ^
clang/include/clang/Analysis/Analyses/Dominators.h