[flang-commits] [flang] 1fda7ba - [flang] fix unused variable warning from D113659

Jean Perier via flang-commits flang-commits at lists.llvm.org
Fri Nov 12 00:57:42 PST 2021


Author: Jean Perier
Date: 2021-11-12T09:34:02+01:00
New Revision: 1fda7baf8a0bcc1819b5471ad0590f5bd05a5b3f

URL: https://github.com/llvm/llvm-project/commit/1fda7baf8a0bcc1819b5471ad0590f5bd05a5b3f
DIFF: https://github.com/llvm/llvm-project/commit/1fda7baf8a0bcc1819b5471ad0590f5bd05a5b3f.diff

LOG: [flang] fix unused variable warning from D113659

Added: 
    

Modified: 
    flang/unittests/Runtime/Transformational.cpp

Removed: 
    


################################################################################
diff  --git a/flang/unittests/Runtime/Transformational.cpp b/flang/unittests/Runtime/Transformational.cpp
index 2656a4124e2f..5f2fd506256b 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<TypeCategory::Integer, 4>(
       std::vector<int>{6}, std::vector<std::int32_t>{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__);


        


More information about the flang-commits mailing list