From 12bca97a9934a00c60776768dcaee958c4981bb6 Mon Sep 17 00:00:00 2001 From: Zheng Xu Date: Mon, 30 Mar 2015 19:35:50 +0800 Subject: Opt compiler: Fix move from constant. Change-Id: Ifadb190569d349560ae9a2c49b7cabcffac362c8 --- compiler/optimizing/code_generator_x86_64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing') 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()); } else if (source.IsConstant()) { HConstant* constant = source.GetConstant(); - int64_t value = constant->AsLongConstant()->GetValue(); + int64_t value; if (constant->IsDoubleConstant()) { value = bit_cast(constant->AsDoubleConstant()->GetValue()); } else { -- cgit v1.2.3-59-g8ed1b