From: Simon Pilgrim Date: Tue, 28 May 2019 10:53:23 +0000 (+0000) Subject: [X86] X86CmovConverterPass::collectCmovCandidates - fix uninitialized variable warnin... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4881a71cb6898487dba5e759627a005d49d2f2a;p=llvm [X86] X86CmovConverterPass::collectCmovCandidates - fix uninitialized variable warnings. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361804 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86CmovConversion.cpp b/lib/Target/X86/X86CmovConversion.cpp index 3585c39df51..ab7b31d8aa7 100644 --- a/lib/Target/X86/X86CmovConversion.cpp +++ b/lib/Target/X86/X86CmovConversion.cpp @@ -280,7 +280,8 @@ bool X86CmovConverterPass::collectCmovCandidates( Group.clear(); // Condition code of first CMOV instruction current processed range and its // opposite condition code. - X86::CondCode FirstCC, FirstOppCC, MemOpCC; + X86::CondCode FirstCC = X86::COND_INVALID, FirstOppCC = X86::COND_INVALID, + MemOpCC = X86::COND_INVALID; // Indicator of a non CMOVrr instruction in the current processed range. bool FoundNonCMOVInst = false; // Indicator for current processed CMOV-group if it should be skipped.