[llvm] r361804 - [X86] X86CmovConverterPass::collectCmovCandidates - fix uninitialized variable warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 03:53:23 PDT 2019
Author: rksimon
Date: Tue May 28 03:53:23 2019
New Revision: 361804
URL: http://llvm.org/viewvc/llvm-project?rev=361804&view=rev
Log:
[X86] X86CmovConverterPass::collectCmovCandidates - fix uninitialized variable warnings. NFCI.
Modified:
llvm/trunk/lib/Target/X86/X86CmovConversion.cpp
Modified: llvm/trunk/lib/Target/X86/X86CmovConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86CmovConversion.cpp?rev=361804&r1=361803&r2=361804&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86CmovConversion.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86CmovConversion.cpp Tue May 28 03:53:23 2019
@@ -280,7 +280,8 @@ bool X86CmovConverterPass::collectCmovCa
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.
More information about the llvm-commits
mailing list