Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index 7c124cde15d7257001fa656df4170ad254a52325..af3decc5b5a72eb78886791eed3176b1018653b6 100644 |
--- a/src/compiler/linkage.cc |
+++ b/src/compiler/linkage.cc |
@@ -18,7 +18,7 @@ |
namespace { |
LinkageLocation regloc(Register reg) { |
- return LinkageLocation::ForRegister(reg.code()); |
+ return LinkageLocation::ForRegister(Register::ToAllocationIndex(reg)); |
} |