summaryrefslogtreecommitdiff
path: root/runtime/quick_exception_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/quick_exception_handler.cc')
-rw-r--r--runtime/quick_exception_handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc
index 8924108f74..beb42a6a05 100644
--- a/runtime/quick_exception_handler.cc
+++ b/runtime/quick_exception_handler.cc
@@ -806,7 +806,7 @@ void QuickExceptionHandler::DeoptimizePartialFragmentFixup() {
}
}
-Context* QuickExceptionHandler::PrepareLongJump(bool smash_caller_saves) {
+std::unique_ptr<Context> QuickExceptionHandler::PrepareLongJump(bool smash_caller_saves) {
// Prepare and return the context.
context_->SetSP(reinterpret_cast<uintptr_t>(handler_quick_frame_));
CHECK_NE(handler_quick_frame_pc_, 0u);
@@ -826,7 +826,7 @@ Context* QuickExceptionHandler::PrepareLongJump(bool smash_caller_saves) {
}
// Clear the dex_pc list so as not to leak memory.
handler_dex_pc_list_.reset();
- return context_.release();
+ return std::move(context_);
}
void QuickExceptionHandler::DumpFramesWithType(Thread* self, bool details) {