Fix scoping issue in Compiler::CompileMethod

Change-Id: I3ff619034d3c6f8db79c52f93eabe2ed7ff6da5f
diff --git a/src/compiler.cc b/src/compiler.cc
index ee771c5..cbfd35c 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -310,7 +310,7 @@
     CHECK(compiled_method != NULL);
   } else if (method->IsAbstract()) {
   } else {
-    CompiledMethod* compiled_method = oatCompileMethod(*this, method, kThumb2);
+    compiled_method = oatCompileMethod(*this, method, kThumb2);
     CHECK(compiled_method != NULL);
   }