From b792627ce9b883ad06aa657413335e4030b31f5b Mon Sep 17 00:00:00 2001 From: Mikael Holmen Date: Tue, 29 Jan 2019 06:51:28 +0000 Subject: [PATCH] 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, 2> LaneSrcs(NumLanes, {-1, -1}); ^~~~~~ { } 1 error generated. llvm-svn: 352455 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 92001c770978..0fdbf766a3de 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -14178,7 +14178,7 @@ static SDValue lowerShuffleByMerging128BitLanes( int NumLanes = VT.getSizeInBits() / 128; int LaneSize = 128 / VT.getScalarSizeInBits(); SmallVector RepeatMask(LaneSize, -1); - SmallVector, 2> LaneSrcs(NumLanes, {-1, -1}); + SmallVector, 2> LaneSrcs(NumLanes, {{-1, -1}}); // First pass will try to fill in the RepeatMask from lanes that need two // sources.