Fix link bug in LLVM.

Passing 4 run tests.

Change-Id: I01e0fc37a1662174891a88b4304a528378fe65fe
diff --git a/src/object.cc b/src/object.cc
index 74195f8..7fdff31 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -573,7 +573,7 @@
   bool have_executable_code = (GetCode() != NULL);
 
 #if defined(ART_USE_LLVM_COMPILER)
-  if (stub == NULL && !have_executable_code) {
+  if (stub == NULL || !have_executable_code) {
     art_ensure_link_from_code(const_cast<Method*>(this));
     stub = GetInvokeStub();
     have_executable_code = (GetCode() != NULL);