projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2ee37
)
Fix a use of uninitialized value. OldCC is set when IsCmpZero || IsSwapped and read...
author
Nick Lewycky
<nicholas@mxc.ca>
Wed, 4 Jun 2014 07:45:54 +0000
(07:45 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Wed, 4 Jun 2014 07:45:54 +0000
(07:45 +0000)
llvm-svn: 210168
llvm/lib/Target/X86/X86InstrInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86InstrInfo.cpp
b/llvm/lib/Target/X86/X86InstrInfo.cpp
index
6993577
..
a0ee1ee
100644
(file)
--- a/
llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/
llvm/lib/Target/X86/X86InstrInfo.cpp
@@
-3741,7
+3741,7
@@
optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2,
continue;
// EFLAGS is used by this instruction.
- X86::CondCode OldCC;
+ X86::CondCode OldCC
= X86::COND_INVALID
;
bool OpcIsSET = false;
if (IsCmpZero || IsSwapped) {
// We decode the condition code from opcode.