[PATCH] D117784: [flang][NFC] Remove unused/duplicated kStridePosInDim

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 20 07:04:28 PST 2022


clementval created this revision.
clementval added reviewers: jeanPerier, kiranchandramohan, awarzynski, PeteSteinfeld, schweitz, svedanayagam.
Herald added a subscriber: mehdi_amini.
Herald added a project: Flang.
clementval requested review of this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.

kStridePosInDim is a duplicate of kDimStridePos and is not used. Just
remove it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117784

Files:
  flang/lib/Optimizer/CodeGen/TypeConverter.h


Index: flang/lib/Optimizer/CodeGen/TypeConverter.h
===================================================================
--- flang/lib/Optimizer/CodeGen/TypeConverter.h
+++ flang/lib/Optimizer/CodeGen/TypeConverter.h
@@ -31,9 +31,9 @@
 static constexpr unsigned kAttributePosInBox = 5;
 static constexpr unsigned kF18AddendumPosInBox = 6;
 static constexpr unsigned kDimsPosInBox = 7;
-static constexpr unsigned kStridePosInDim = 2;
 static constexpr unsigned kOptTypePtrPosInBox = 8;
 static constexpr unsigned kOptRowTypePosInBox = 9;
+
 // Position of the different values in [dims]
 static constexpr unsigned kDimLowerBoundPos = 0;
 static constexpr unsigned kDimExtentPos = 1;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117784.401627.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220120/07fc479d/attachment-0001.bin>


More information about the llvm-commits mailing list