Function defined in a header should be inline. Found by modules build.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 Apr 2014 23:14:32 +0000 (23:14 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 Apr 2014 23:14:32 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207157 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/PBQP/RegAllocSolver.h

index 4700a8b6230a136ae547085797fa0e336ce8ce63..977c34843bbdd93f5d7ff21de9fa96071e7ac662 100644 (file)
@@ -346,7 +346,7 @@ namespace PBQP {
 
     typedef Graph<RegAllocSolverImpl> Graph;
 
-    Solution solve(Graph& G) {
+    inline Solution solve(Graph& G) {
       if (G.empty())
         return Solution();
       RegAllocSolverImpl RegAllocSolver(G);