OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7982b43
)
Suppress un-initialize warning.
author
Nowar Gu
<nowar100@gmail.com>
Fri, 17 Jun 2011 06:22:53 +0000
(14:22 +0800)
committer
Nowar Gu
<nowar100@gmail.com>
Mon, 20 Jun 2011 07:48:06 +0000
(15:48 +0800)
We should do bitwise operation on un-initialized variable.
Maybe this stub lose some information, but I don't know.
Anyway, I clear it to 0.
lib/Target/ARM/ARMCodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMCodeEmitter.cpp
b/lib/Target/ARM/ARMCodeEmitter.cpp
index
d010d1d
..
d381ce7
100644
(file)
--- a/
lib/Target/ARM/ARMCodeEmitter.cpp
+++ b/
lib/Target/ARM/ARMCodeEmitter.cpp
@@
-301,7
+301,7
@@
namespace {
// {12-9} = reg
// {8} = (U)nsigned (add == '1', sub == '0')
// {7-0} = imm8
- uint32_t Binary;
+ uint32_t Binary
= 0
;
const MachineOperand &MO = MI.getOperand(Op);
uint32_t Reg = getMachineOpValue(MI, MO);
Binary |= (Reg << 9);