diff --git a/src/LinSolveAlgo.jl b/src/LinSolveAlgo.jl
index b1eef9717423d03441f15345b97eefc0fcfddd67..2f740b01973cb97ed3b56f83d0d5549e8b9d9f68 100644
--- a/src/LinSolveAlgo.jl
+++ b/src/LinSolveAlgo.jl
@@ -47,11 +47,6 @@ for (getrf, getrs, elty) in
             end
         end
 
-        # if a is an adjoint matrix, we compute lu decomposition
-        # for its parent as the transposition is done at the
-        # solution stage
-        lu!(a::Adjoint,
-            ws::LinSolveWs) = lu!(a.parent, ws)
 
         t1 = StridedMatrix{$elty}
         t2 = Transpose{$elty, <: StridedMatrix}
@@ -97,5 +92,9 @@ for (getrf, getrs, elty) in
     end
 end
 
+# if a is an adjoint matrix, we compute lu decomposition
+# for its parent as the transposition is done at the
+# solution stage
+lu!(a::Adjoint, ws::LinSolveWs) = lu!(a.parent, ws)
 
 end