diff options
author | 2014-11-03 21:36:10 -0800 | |
---|---|---|
committer | 2014-11-04 18:40:08 -0800 | |
commit | 277ccbd200ea43590dfc06a93ae184a765327ad0 (patch) | |
tree | d89712e93da5fb2748989353c9ee071102cf3f33 /compiler/optimizing/gvn.cc | |
parent | ad17d41841ba1fb177fb0bf175ec0e9f5e1412b3 (diff) |
ART: More warnings
Enable -Wno-conversion-null, -Wredundant-decls and -Wshadow in general,
and -Wunused-but-set-parameter for GCC builds.
Change-Id: I81bbdd762213444673c65d85edae594a523836e5
Diffstat (limited to 'compiler/optimizing/gvn.cc')
-rw-r--r-- | compiler/optimizing/gvn.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/gvn.cc b/compiler/optimizing/gvn.cc index 027b3d4ff3..25168b5b0c 100644 --- a/compiler/optimizing/gvn.cc +++ b/compiler/optimizing/gvn.cc @@ -54,8 +54,9 @@ void GlobalValueNumberer::ComputeSideEffects() { SideEffects effects = SideEffects::None(); // Update `effects` with the side effects of all instructions in this block. - for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { - HInstruction* instruction = it.Current(); + for (HInstructionIterator inst_it(block->GetInstructions()); !inst_it.Done(); + inst_it.Advance()) { + HInstruction* instruction = inst_it.Current(); effects = effects.Union(instruction->GetSideEffects()); if (effects.HasAllSideEffects()) { break; |