r365377 - Add missing declarations of explicit member specializations.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 12:45:46 PDT 2019


Author: rsmith
Date: Mon Jul  8 12:45:46 2019
New Revision: 365377

URL: http://llvm.org/viewvc/llvm-project?rev=365377&view=rev
Log:
Add missing declarations of explicit member specializations.

This should fix the build under -Wundefined-func-template and certain
versions of GCC.

Modified:
    cfe/trunk/include/clang/Analysis/Analyses/Dominators.h

Modified: cfe/trunk/include/clang/Analysis/Analyses/Dominators.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/Dominators.h?rev=365377&r1=365376&r2=365377&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/Dominators.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/Dominators.h Mon Jul  8 12:45:46 2019
@@ -184,6 +184,9 @@ private:
 using CFGDomTree = CFGDominatorTreeImpl</*IsPostDom*/ false>;
 using CFGPostDomTree = CFGDominatorTreeImpl</*IsPostDom*/ true>;
 
+template<> void CFGDominatorTreeImpl<true>::anchor();
+template<> void CFGDominatorTreeImpl<false>::anchor();
+
 } // end of namespace clang
 
 namespace llvm {




More information about the cfe-commits mailing list