[flang-commits] [flang] 81cbbe3 - [flang][NFC] Remove unused/duplicated kStridePosInDim

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Jan 20 09:30:35 PST 2022


Author: Valentin Clement
Date: 2022-01-20T18:30:29+01:00
New Revision: 81cbbe3e17a4a9b2e0d227b591553d90eeab1400

URL: https://github.com/llvm/llvm-project/commit/81cbbe3e17a4a9b2e0d227b591553d90eeab1400
DIFF: https://github.com/llvm/llvm-project/commit/81cbbe3e17a4a9b2e0d227b591553d90eeab1400.diff

LOG: [flang][NFC] Remove unused/duplicated kStridePosInDim

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

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D117784

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/TypeConverter.h b/flang/lib/Optimizer/CodeGen/TypeConverter.h
index d96b752be1b81..478c2592b10b1 100644
--- a/flang/lib/Optimizer/CodeGen/TypeConverter.h
+++ b/flang/lib/Optimizer/CodeGen/TypeConverter.h
@@ -31,9 +31,9 @@ static constexpr unsigned kTypePosInBox = 4;
 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 
diff erent values in [dims]
 static constexpr unsigned kDimLowerBoundPos = 0;
 static constexpr unsigned kDimExtentPos = 1;


        


More information about the flang-commits mailing list