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