From bf4c5f4724e5c3a9aab5ddf8b5c201f67aaa0f1c Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 30 May 2019 14:01:24 +0000 Subject: [PATCH] [ARM] LowerVECTOR_SHUFFLE - fix uninitialized variable warnings. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362094 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMISelLowering.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 7dd2fef89ee..9231ad20aa3 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -7007,8 +7007,8 @@ static SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) { DAG.getConstant(Lane, dl, MVT::i32)); } - bool ReverseVEXT; - unsigned Imm; + bool ReverseVEXT = false; + unsigned Imm = 0; if (isVEXTMask(ShuffleMask, VT, ReverseVEXT, Imm)) { if (ReverseVEXT) std::swap(V1, V2); @@ -7033,8 +7033,8 @@ static SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) { // source operands and with masks corresponding to both results of one of // these operations, DAG memoization will ensure that a single node is // used for both shuffles. - unsigned WhichResult; - bool isV_UNDEF; + unsigned WhichResult = 0; + bool isV_UNDEF = false; if (unsigned ShuffleOpc = isNEONTwoResultShuffleMask( ShuffleMask, VT, WhichResult, isV_UNDEF)) { if (isV_UNDEF) -- 2.40.0