[LLVM] Fix parameter bug in throwing ArrayIndexOutOfBoundsException.
Fix bug exposed by 201-built-in-exception-detail-messages.
Change-Id: Id20072db40486302c6fb6ffbe64ab7b0fb2ce85f
diff --git a/src/compiler_llvm/runtime_support_llvm.cc b/src/compiler_llvm/runtime_support_llvm.cc
index 2463bc5..155d824 100644
--- a/src/compiler_llvm/runtime_support_llvm.cc
+++ b/src/compiler_llvm/runtime_support_llvm.cc
@@ -115,7 +115,7 @@
"divide by zero");
}
-void art_throw_array_bounds_from_code(int32_t length, int32_t index) {
+void art_throw_array_bounds_from_code(int32_t index, int32_t length) {
Thread* thread = art_get_current_thread_from_code();
thread->ThrowNewExceptionF("Ljava/lang/ArrayIndexOutOfBoundsException;",
"length=%d; index=%d", length, index);