@@ -123,8 +123,8 @@ TEST_F(SelectionDAGPatternMatchTest, matchVecShuffle) {
123123 SDLoc DL;
124124 auto Int32VT = EVT::getIntegerVT (Context, 32 );
125125 auto VInt32VT = EVT::getVectorVT (Context, Int32VT, 4 );
126- SmallVector <int , 4 > MaskData = {2 , 0 , 3 , 1 };
127- SmallVector <int , 4 > otherMaskData = {1 , 2 , 3 , 4 };
126+ const std::array <int , 4 > MaskData = {2 , 0 , 3 , 1 };
127+ const std::array <int , 4 > OtherMaskData = {1 , 2 , 3 , 4 };
128128 ArrayRef<int > CapturedMask;
129129
130130 SDValue V0 = DAG->getCopyFromReg (DAG->getEntryNode (), DL, 1 , VInt32VT);
@@ -139,10 +139,10 @@ TEST_F(SelectionDAGPatternMatchTest, matchVecShuffle) {
139139 m_ShuffleSpecificMask (m_Value (), m_Value (), MaskData)));
140140 EXPECT_FALSE (
141141 sd_match (VecShuffleWithMask,
142- m_ShuffleSpecificMask (m_Value (), m_Value (), otherMaskData )));
142+ m_ShuffleSpecificMask (m_Value (), m_Value (), OtherMaskData )));
143143 EXPECT_TRUE (std::equal (MaskData.begin (), MaskData.end (), CapturedMask.begin (),
144144 CapturedMask.end ()));
145- EXPECT_FALSE (std::equal (otherMaskData .begin (), otherMaskData .end (),
145+ EXPECT_FALSE (std::equal (OtherMaskData .begin (), OtherMaskData .end (),
146146 CapturedMask.begin (), CapturedMask.end ()));
147147}
148148
0 commit comments