Index: src/compiler/c-linkage.cc |
diff --git a/src/compiler/c-linkage.cc b/src/compiler/c-linkage.cc |
index 1c91f7c118a6e2e62a342920877155d034ec6485..af5f813a30ab0072d8441ed0a4e7a585220acbb3 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)); |
} |