diff options
author | Zheng Xu <zheng.xu@arm.com> | 2015-03-30 19:35:50 +0800 |
---|---|---|
committer | Zheng Xu <zheng.xu@arm.com> | 2015-03-30 19:42:02 +0800 |
commit | 12bca97a9934a00c60776768dcaee958c4981bb6 (patch) | |
tree | 9e353b9363ffaa9ed4966682db940bc2a24c828c /compiler/optimizing/code_generator_x86_64.cc | |
parent | a3d40d5f764adfde8fa40d826cd93ba36cd15437 (diff) | |
download | art-12bca97a9934a00c60776768dcaee958c4981bb6.tar.gz art-12bca97a9934a00c60776768dcaee958c4981bb6.tar.bz2 art-12bca97a9934a00c60776768dcaee958c4981bb6.zip |
Opt compiler: Fix move from constant.
Change-Id: Ifadb190569d349560ae9a2c49b7cabcffac362c8
Diffstat (limited to 'compiler/optimizing/code_generator_x86_64.cc')
-rw-r--r-- | compiler/optimizing/code_generator_x86_64.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_x86_64.cc b/compiler/optimizing/code_generator_x86_64.cc index ef60280016..48fdbb5c22 100644 --- a/compiler/optimizing/code_generator_x86_64.cc +++ b/compiler/optimizing/code_generator_x86_64.cc @@ -606,7 +606,7 @@ void CodeGeneratorX86_64::Move(Location destination, Location source) { source.AsFpuRegister<XmmRegister>()); } else if (source.IsConstant()) { HConstant* constant = source.GetConstant(); - int64_t value = constant->AsLongConstant()->GetValue(); + int64_t value; if (constant->IsDoubleConstant()) { value = bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); } else { |