Index: src/compiler/c-linkage.cc |
diff --git a/src/compiler/c-linkage.cc b/src/compiler/c-linkage.cc |
index 59e8c86d88589e9e6c79b0bb39557596d515087c..76ddd2ed7d1d2cd26e8b3e218170f56d2494891c 100644 |
--- a/src/compiler/c-linkage.cc |
+++ b/src/compiler/c-linkage.cc |
@@ -15,7 +15,7 @@ |
namespace { |
LinkageLocation regloc(Register reg) { |
- return LinkageLocation::ForRegister(reg.code()); |
+ return LinkageLocation::ForRegister(Register::ToAllocationIndex(reg)); |
} |