Index: test/cctest/test-disasm-ia32.cc |
diff --git a/test/cctest/test-disasm-ia32.cc b/test/cctest/test-disasm-ia32.cc |
index b53eaaa217372049a7bcb1ef2e6a8a2166c502df..5cd56acf0588f96e4450a926b1c7ab654a6c0c7e 100644 |
--- a/test/cctest/test-disasm-ia32.cc |
+++ b/test/cctest/test-disasm-ia32.cc |
@@ -438,9 +438,10 @@ TEST(DisasmIa320) { |
CodeDesc desc; |
assm.GetCode(&desc); |
- Object* code = Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value())); |
+ Object* code = Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked(); |
CHECK(code->IsCode()); |
#ifdef DEBUG |
Code::cast(code)->Print(); |