summaryrefslogtreecommitdiff
path: root/runtime/method_handles.cc
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2018-08-02 14:43:21 -0700
committer Yi Kong <yikong@google.com> 2018-08-02 14:43:21 -0700
commit4b22b34c698db8aa59343d0a5af89fc737532bce (patch)
tree985c0e28dcdf5a497737690b50d31c4eb7bbda85 /runtime/method_handles.cc
parent9e53f5f19167848d043f91e6d20436e9b568b55a (diff)
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: Id869744db54b5b366454a5e13b467ac1f4df2845
Diffstat (limited to 'runtime/method_handles.cc')
-rw-r--r--runtime/method_handles.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/method_handles.cc b/runtime/method_handles.cc
index 01a32a2288..570fc48272 100644
--- a/runtime/method_handles.cc
+++ b/runtime/method_handles.cc
@@ -484,7 +484,7 @@ static inline bool MethodHandleInvokeMethod(ArtMethod* called_method,
first_dest_reg,
new_shadow_frame)) {
DCHECK(self->IsExceptionPending());
- result->SetL(0);
+ result->SetL(nullptr);
return false;
}
} else {
@@ -500,7 +500,7 @@ static inline bool MethodHandleInvokeMethod(ArtMethod* called_method,
operands,
new_shadow_frame)) {
DCHECK(self->IsExceptionPending());
- result->SetL(0);
+ result->SetL(nullptr);
return false;
}
}