Index: src/mips/assembler-mips.h |
diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h |
index ee4daadf1243c584329aa60376636b034b2521a7..6ee21c232e31d8f35341985e555bcf2761daf4aa 100644 |
--- a/src/mips/assembler-mips.h |
+++ b/src/mips/assembler-mips.h |
@@ -318,12 +318,15 @@ const FPURegister f31 = { 31 }; |
// Register aliases. |
// cp is assumed to be a callee saved register. |
-static const Register& kLithiumScratchReg = s3; // Scratch register. |
-static const Register& kLithiumScratchReg2 = s4; // Scratch register. |
-static const Register& kRootRegister = s6; // Roots array pointer. |
-static const Register& cp = s7; // JavaScript context pointer. |
-static const DoubleRegister& kLithiumScratchDouble = f30; |
-static const FPURegister& kDoubleRegZero = f28; |
+// Defined using #define instead of "static const Register&" because Clang |
+// complains otherwise when a compilation unit that includes this header |
+// doesn't use the variables. |
+#define kRootRegister s6 |
+#define cp s7 |
+#define kLithiumScratchReg s3 |
+#define kLithiumScratchReg2 s4 |
+#define kLithiumScratchDouble f30 |
+#define kDoubleRegZero f28 |
// FPU (coprocessor 1) control registers. |
// Currently only FCSR (#31) is implemented. |