diff options
author | 2016-03-30 19:09:03 +0100 | |
---|---|---|
committer | 2016-03-30 19:09:03 +0100 | |
commit | f355c3ff08710ac2eba3aac2aacc5e65caa06b4c (patch) | |
tree | 1d9f9487897fabc539f748be881f9c8140c16cef /compiler/optimizing/nodes.h | |
parent | 6f51d7756a9c66007fe7666b19399e1f60ff6092 (diff) |
Fix Boolean to integral types conversions.
Bug: 27616343
Change-Id: I050f92045bca1b8b5d6da53547cc617f17be84b1
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index e9a42cb0ce..0be75b5a2f 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4902,6 +4902,8 @@ class HTypeConversion : public HExpression<1> { dex_pc) { SetRawInputAt(0, input); DCHECK_NE(input->GetType(), result_type); + // Invariant: We should never generate a conversion to a Boolean value. + DCHECK_NE(Primitive::kPrimBoolean, result_type); } HInstruction* GetInput() const { return InputAt(0); } |