diff options
| author | 2015-03-24 17:00:58 +0000 | |
|---|---|---|
| committer | 2015-03-24 17:01:00 +0000 | |
| commit | 2c2d00e8ca841aa2f57fa2f852e896378ef67144 (patch) | |
| tree | c4050a4e6e9aa6f091ae042daf940ba0a1e72136 /compiler/optimizing/code_generator.h | |
| parent | 09aa354d0d7ff58cb9f028647d81a67648c9e0ba (diff) | |
| parent | da4d79bc9a4aeb9da7c6259ce4c9c1c3bf545eb8 (diff) | |
Merge "Unify ART's various implementations of bit_cast."
Diffstat (limited to 'compiler/optimizing/code_generator.h')
| -rw-r--r-- | compiler/optimizing/code_generator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index ecaa6f0123..07ca6b1ccf 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -271,7 +271,7 @@ class CodeGenerator { return 0; } else { DCHECK(constant->IsFloatConstant()); - return bit_cast<float, int32_t>(constant->AsFloatConstant()->GetValue()); + return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); } } @@ -281,12 +281,12 @@ class CodeGenerator { } else if (constant->IsNullConstant()) { return 0; } else if (constant->IsFloatConstant()) { - return bit_cast<float, int32_t>(constant->AsFloatConstant()->GetValue()); + return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); } else if (constant->IsLongConstant()) { return constant->AsLongConstant()->GetValue(); } else { DCHECK(constant->IsDoubleConstant()); - return bit_cast<double, int64_t>(constant->AsDoubleConstant()->GetValue()); + return bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); } } |