summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_common.h
diff options
context:
space:
mode:
author Igor Murashkin <iam@google.com> 2015-07-23 16:53:53 -0700
committer Igor Murashkin <iam@google.com> 2015-07-30 14:36:01 -0700
commitfb326cffc679cab8eb873b9e44795706f023cb3c (patch)
tree7ad4b524299195c42d38a5e7ef01b7fdb4c30e86 /runtime/interpreter/interpreter_common.h
parent8433bb8a3120d064de97a692d98341d9bc29a985 (diff)
base: replace raw pointers for out-parameters with safer out<T>
Add a zero-cost type-safe abstraction for representing "out" parameters (i.e. when the calling function has to return multiple results out by-reference into the argument slots instead of using the return slot). Change-Id: I33a941e4863b6bed71d2bfa43d7f48e9b111f83f
Diffstat (limited to 'runtime/interpreter/interpreter_common.h')
-rw-r--r--runtime/interpreter/interpreter_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_common.h b/runtime/interpreter/interpreter_common.h
index 2486a983fd..a6cccef617 100644
--- a/runtime/interpreter/interpreter_common.h
+++ b/runtime/interpreter/interpreter_common.h
@@ -553,7 +553,7 @@ static inline bool DoUnboxLambda(Thread* self,
ArtMethod* unboxed_closure = nullptr;
// Raise an exception if unboxing fails.
if (!Runtime::Current()->GetLambdaBoxTable()->UnboxLambda(boxed_closure_object,
- &unboxed_closure)) {
+ outof(unboxed_closure))) {
CHECK(self->IsExceptionPending());
return false;
}