Index: test/cctest/compiler/test-run-native-calls.cc |
diff --git a/test/cctest/compiler/test-run-native-calls.cc b/test/cctest/compiler/test-run-native-calls.cc |
index 7885ba40148b661b6ceedda7d5fa4a029d186b13..89629ec09016384d543e0ba6c52a7ef6cddcb84a 100644 |
--- a/test/cctest/compiler/test-run-native-calls.cc |
+++ b/test/cctest/compiler/test-run-native-calls.cc |
@@ -293,7 +293,9 @@ Handle<Code> WrapWithCFunction(Handle<Code> inner, CallDescriptor* desc) { |
// Build the call and return nodes. |
Node* call = |
b.graph()->NewNode(b.common()->Call(desc), param_count + 3, args); |
- Node* ret = b.graph()->NewNode(b.common()->Return(), call, call, start); |
+ Node* zero = b.graph()->NewNode(b.common()->Int32Constant(0)); |
+ Node* ret = |
+ b.graph()->NewNode(b.common()->Return(), zero, call, call, start); |
b.graph()->SetEnd(ret); |
} |
@@ -531,7 +533,9 @@ static void TestInt32Sub(CallDescriptor* desc) { |
Node* p0 = b.graph()->NewNode(b.common()->Parameter(0), start); |
Node* p1 = b.graph()->NewNode(b.common()->Parameter(1), start); |
Node* add = b.graph()->NewNode(b.machine()->Int32Sub(), p0, p1); |
- Node* ret = b.graph()->NewNode(b.common()->Return(), add, start, start); |
+ Node* zero = b.graph()->NewNode(b.common()->Int32Constant(0)); |
+ Node* ret = |
+ b.graph()->NewNode(b.common()->Return(), zero, add, start, start); |
b.graph()->SetEnd(ret); |
} |