[llvm] 297d96b - Fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 3 03:35:24 PST 2019
Author: Simon Pilgrim
Date: 2019-11-03T11:15:55Z
New Revision: 297d96bb603f8a02fa45ef65cec6ca29222e9193
URL: https://github.com/llvm/llvm-project/commit/297d96bb603f8a02fa45ef65cec6ca29222e9193
DIFF: https://github.com/llvm/llvm-project/commit/297d96bb603f8a02fa45ef65cec6ca29222e9193.diff
LOG: Fix uninitialized variable warning. NFCI.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 81b85501ebee..8bd8bff1d5ed 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -40059,7 +40059,7 @@ static SDValue combineTruncateWithSat(SDValue In, EVT VT, const SDLoc &DL,
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
if (TLI.isTypeLegal(InVT) && InVT.isVector() && SVT != MVT::i1 &&
Subtarget.hasAVX512() && (InSVT != MVT::i16 || Subtarget.hasBWI())) {
- unsigned TruncOpc;
+ unsigned TruncOpc = 0;
SDValue SatVal;
if (auto SSatVal = detectSSatPattern(In, VT)) {
SatVal = SSatVal;
More information about the llvm-commits
mailing list