| Index: src/frames.cc
|
| diff --git a/src/frames.cc b/src/frames.cc
|
| index eb06ac23b6a36ed1b0d9a726e7651760a9377924..c2c33fad1d9f20fc849b3a315351131abe48fb0d 100644
|
| --- a/src/frames.cc
|
| +++ b/src/frames.cc
|
| @@ -1559,10 +1559,10 @@ Address WasmFrame::GetCallerStackPointer() const {
|
| }
|
|
|
| WasmInstanceObject* WasmFrame::wasm_instance() const {
|
| - Object* ret = wasm::GetOwningWasmInstance(LookupCode());
|
| - // This is a live stack frame, there must be a live wasm instance available.
|
| - DCHECK_NOT_NULL(ret);
|
| - return WasmInstanceObject::cast(ret);
|
| + WasmInstanceObject* obj = wasm::GetOwningWasmInstance(LookupCode());
|
| + // This is a live stack frame; it must have a live instance.
|
| + DCHECK_NOT_NULL(obj);
|
| + return obj;
|
| }
|
|
|
| uint32_t WasmFrame::function_index() const {
|
|
|