[flang-commits] [flang] 0402eae - [flang][NFC] Remove unused variable

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Feb 23 09:07:08 PST 2023


Author: Valentin Clement
Date: 2023-02-23T18:06:58+01:00
New Revision: 0402eaed5631236eb011503b59cf2356b4f8dfdc

URL: https://github.com/llvm/llvm-project/commit/0402eaed5631236eb011503b59cf2356b4f8dfdc
DIFF: https://github.com/llvm/llvm-project/commit/0402eaed5631236eb011503b59cf2356b4f8dfdc.diff

LOG: [flang][NFC] Remove unused variable

Added: 
    

Modified: 
    flang/runtime/derived.cpp

Removed: 
    


################################################################################
diff  --git a/flang/runtime/derived.cpp b/flang/runtime/derived.cpp
index 5bfecdc8f070..354de1baddd9 100644
--- a/flang/runtime/derived.cpp
+++ b/flang/runtime/derived.cpp
@@ -224,7 +224,6 @@ void Destroy(const Descriptor &descriptor, bool finalize,
   const Descriptor &componentDesc{derived.component()};
   std::size_t myComponents{componentDesc.Elements()};
   std::size_t elements{descriptor.Elements()};
-  std::size_t byteStride{descriptor.ElementBytes()};
   SubscriptValue at[maxRank];
   descriptor.GetLowerBounds(at);
   for (std::size_t k{0}; k < myComponents; ++k) {


        


More information about the flang-commits mailing list