diff --git a/flang/unittests/Runtime/Transformational.cpp b/flang/unittests/Runtime/Transformational.cpp index 2656a4124e2f7..5f2fd506256b7 100644 --- a/flang/unittests/Runtime/Transformational.cpp +++ b/flang/unittests/Runtime/Transformational.cpp @@ -96,8 +96,7 @@ TEST(Transformational, Shifts) { // VECTOR 1 3 5 2 4 6 WITH non zero lower bound in a negative cshift. auto vectorWithLowerBounds{MakeArray( std::vector{6}, std::vector{1, 2, 3, 4, 5, 6})}; - vector->GetDimension(0).SetLowerBound(2); - StaticDescriptor<1, true> vectorDesc2; + vectorWithLowerBounds->GetDimension(0).SetLowerBound(2); RTNAME(CshiftVector) (vectorResult, *vectorWithLowerBounds, -2, __FILE__, __LINE__);