Fix 044-proxy bug in oat_write.cc.

We should prepare proxy stub for NON-static function
instead.

Change-Id: I210896b1e40de996f4a83abbe6e108efb9f5d56b
diff --git a/src/oat_writer.cc b/src/oat_writer.cc
index 5e12299..72ac6e6 100644
--- a/src/oat_writer.cc
+++ b/src/oat_writer.cc
@@ -353,7 +353,7 @@
   }
 
 #if defined(ART_USE_LLVM_COMPILER)
-  if (type == kStatic) {
+  if (type != kStatic) {
     const CompiledInvokeStub* compiled_proxy_stub = compiler_->FindProxyStub(shorty);
     if (compiled_proxy_stub != NULL) {
       offset = CompiledMethod::AlignCode(offset, compiler_->GetInstructionSet());
@@ -733,7 +733,7 @@
   }
 
 #if defined(ART_USE_LLVM_COMPILER)
-  if (is_static) {
+  if (!is_static) {
     const CompiledInvokeStub* compiled_proxy_stub = compiler_->FindProxyStub(shorty);
     if (compiled_proxy_stub != NULL) {
       uint32_t aligned_code_offset = CompiledMethod::AlignCode(code_offset,