summaryrefslogtreecommitdiff
path: root/src/compiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.cc')
-rw-r--r--src/compiler.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler.cc b/src/compiler.cc
index 1be7b75b3f..8d7f5b660d 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -839,9 +839,15 @@ void Compiler::GetCodeAndMethodForDirectCall(InvokeType type, InvokeType sharp_t
// invoked, so this can be passed to the out-of-line runtime support code.
direct_code = 0;
direct_method = 0;
+#if !defined(ART_USE_LLVM_COMPILER)
if (sharp_type != kStatic && sharp_type != kDirect && sharp_type != kInterface) {
return;
}
+#else
+ if (sharp_type != kStatic && sharp_type != kDirect) {
+ return;
+ }
+#endif
bool method_code_in_boot = method->GetDeclaringClass()->GetClassLoader() == NULL;
if (!method_code_in_boot) {
return;