OSDN Git Service
(root)
/
android-x86
/
dalvik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bd8e5b
)
Fix a use of uninitialized variable found by gcc-4.6. I don't think this is a
author
Doug Kwan
<dougkwan@google.com>
Sun, 26 Jun 2011 19:26:18 +0000
(12:26 -0700)
committer
Doug Kwan
<dougkwan@google.com>
Sun, 26 Jun 2011 19:26:18 +0000
(12:26 -0700)
real problem as we will only see an undefined value if the list has no instructions other than NOPs.
Change-Id: I055510831ca1c566e2daa2b4b2acbaa655fa735a
vm/compiler/codegen/arm/LocalOptimizations.cpp
patch
|
blob
|
history
diff --git
a/vm/compiler/codegen/arm/LocalOptimizations.cpp
b/vm/compiler/codegen/arm/LocalOptimizations.cpp
index
ffeaa57
..
b89437e
100644
(file)
--- a/
vm/compiler/codegen/arm/LocalOptimizations.cpp
+++ b/
vm/compiler/codegen/arm/LocalOptimizations.cpp
@@
-311,7
+311,7
@@
static void applyLoadHoisting(CompilationUnit *cUnit,
u8 stopDefRegMask = thisLIR->defMask & ~ENCODE_MEM;
int nextSlot = 0;
- bool stopHere;
+ bool stopHere
= false
;
/* Try to hoist the load to a good spot */
for (checkLIR = PREV_LIR(thisLIR);