diff options
author | 2016-03-22 12:31:54 +0000 | |
---|---|---|
committer | 2016-03-22 12:31:54 +0000 | |
commit | 0e2f2ff383ecc08aabb83c62670324ee2ca28bc1 (patch) | |
tree | 144235012371f13abd5c19029bc53a1be171f12d /compiler/optimizing | |
parent | 0c25da0276f5b6f6119793ae9d45d1bca8172c2b (diff) |
Optimizing: Fix a new valgrind error in image_test.
Bug: 27651442
Bug: 27151098
Change-Id: I23a428be68ccf9f9557df01ee7e920eeeb8da2ba
Diffstat (limited to 'compiler/optimizing')
-rw-r--r-- | compiler/optimizing/induction_var_analysis.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/induction_var_analysis.cc b/compiler/optimizing/induction_var_analysis.cc index 8d24e26dda..266cb10ab3 100644 --- a/compiler/optimizing/induction_var_analysis.cc +++ b/compiler/optimizing/induction_var_analysis.cc @@ -789,7 +789,9 @@ bool HInductionVarAnalysis::FitsNarrowerControl(InductionInfo* lower_expr, min++; } // Do both bounds fit the range? - int64_t value; + // Note: The `value` is initialized to please valgrind - the compiler can reorder + // the return value check with the `value` check, b/27651442 . + int64_t value = 0; return IsAtLeast(lower_expr, &value) && value >= min && IsAtMost(lower_expr, &value) && value <= max && IsAtLeast(upper_expr, &value) && value >= min && |