Fix compiler warning when using clang 3.6.0

Without the fix we get the following (with -Werror):

../lib/Target/X86/X86ISelLowering.cpp:14181:58: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
  SmallVector<std::array<int, 2>, 2> LaneSrcs(NumLanes, {-1, -1});
                                                         ^~~~~~
                                                         {     }
1 error generated.

llvm-svn: 352455
This commit is contained in:
Mikael Holmen 2019-01-29 06:51:28 +00:00
parent 3cfd351efc
commit b792627ce9
1 changed files with 1 additions and 1 deletions

View File

@ -14178,7 +14178,7 @@ static SDValue lowerShuffleByMerging128BitLanes(
int NumLanes = VT.getSizeInBits() / 128; int NumLanes = VT.getSizeInBits() / 128;
int LaneSize = 128 / VT.getScalarSizeInBits(); int LaneSize = 128 / VT.getScalarSizeInBits();
SmallVector<int, 16> RepeatMask(LaneSize, -1); SmallVector<int, 16> RepeatMask(LaneSize, -1);
SmallVector<std::array<int, 2>, 2> LaneSrcs(NumLanes, {-1, -1}); SmallVector<std::array<int, 2>, 2> LaneSrcs(NumLanes, {{-1, -1}});
// First pass will try to fill in the RepeatMask from lanes that need two // First pass will try to fill in the RepeatMask from lanes that need two
// sources. // sources.