Index: src/compiler/linkage-impl.h |
diff --git a/src/compiler/linkage-impl.h b/src/compiler/linkage-impl.h |
index 1791a43007a177f676ba1f9549759a39ca3f0ccd..76b40faf350965291742520f2d37f695c8605c46 100644 |
--- a/src/compiler/linkage-impl.h |
+++ b/src/compiler/linkage-impl.h |
@@ -165,7 +165,7 @@ class LinkageHelper { |
// The first parameters go in registers. |
Register reg = descriptor.GetEnvironmentParameterRegister(i); |
Representation rep = |
- descriptor.GetEnvironmentParameterRepresentation(i); |
+ RepresentationFromType(descriptor.GetEnvironmentParameterType(i)); |
locations.AddParam(regloc(reg)); |
types.AddParam(reptyp(rep)); |
} else { |