[Hexagon] Use std::begin() and std::end() instead of doing the same manually. NFC
[oota-llvm.git] / lib / Target / Hexagon / MCTargetDesc / HexagonMCDuplexInfo.cpp
index 34817cd98f2f30d37cc0769ef2cbe94c7d84761a..e6194f61a6ba919d793f649b5e58be731984637e 100644 (file)
@@ -81,8 +81,7 @@ static const std::pair<unsigned, unsigned> opcodeData[] = {
     std::make_pair((unsigned)V4_SS2_storewi1, 4352)};
 
 static std::map<unsigned, unsigned>
-    subinstOpcodeMap(opcodeData,
-                     opcodeData + sizeof(opcodeData) / sizeof(opcodeData[0]));
+    subinstOpcodeMap(std::begin(opcodeData), std::end(opcodeData));
 
 bool HexagonMCInstrInfo::isDuplexPairMatch(unsigned Ga, unsigned Gb) {
   switch (Ga) {