projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f22dd7
)
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210168
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86InstrInfo.cpp
b/lib/Target/X86/X86InstrInfo.cpp
index 6993577d19c0ba7e71d8af9a9256f2a71860acd3..a0ee1ee57be83d8a7d5df36107888a4dc3ad1ddc 100644
(file)
--- a/
lib/Target/X86/X86InstrInfo.cpp
+++ b/
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.