Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index bec83d37120ef85222bf08a8ba010ad312389304..d8a90443087c98b7eab9209e8c92c5983e0eefd4 100644 |
--- a/src/compiler/linkage.cc |
+++ b/src/compiler/linkage.cc |
@@ -52,8 +52,7 @@ std::ostream& operator<<(std::ostream& os, const CallDescriptor& d) { |
MachineSignature* CallDescriptor::GetMachineSignature(Zone* zone) const { |
size_t param_count = ParameterCount(); |
size_t return_count = ReturnCount(); |
- MachineType* types = reinterpret_cast<MachineType*>( |
- zone->New(sizeof(MachineType*) * (param_count + return_count))); |
+ MachineType* types = zone->NewArray<MachineType>(param_count + return_count); |
int current = 0; |
for (size_t i = 0; i < return_count; ++i) { |
types[current++] = GetReturnType(i); |