diff options
| author | 2016-03-31 10:39:52 +0000 | |
|---|---|---|
| committer | 2016-03-31 10:39:53 +0000 | |
| commit | b0170f0457f60b81dd232bb3fa505b22f10f324c (patch) | |
| tree | b7297d1969458814ae5184cc62dc0a8eac437929 /compiler/optimizing/nodes.h | |
| parent | 6656f30115c4a6a52ca01f46ca84df125179466a (diff) | |
| parent | f355c3ff08710ac2eba3aac2aacc5e65caa06b4c (diff) | |
Merge "Fix Boolean to integral types conversions."
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 ba4242112b..9425ef3267 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4904,6 +4904,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); }  |