Index: test/cctest/compiler/c-signature.h |
diff --git a/test/cctest/compiler/c-signature.h b/test/cctest/compiler/c-signature.h |
index d0ce4cc155ff73c83beb7300922fcb4e54af8345..7c537c04ea1e44bed8a53bbf0c54c3f537c81f34 100644 |
--- a/test/cctest/compiler/c-signature.h |
+++ b/test/cctest/compiler/c-signature.h |
@@ -115,7 +115,8 @@ class CSignatureOf : public CSignature { |
if (return_count_ == 1) storage_[0] = MachineTypeForC<Ret>(); |
} |
void Set(int index, MachineType type) { |
- DCHECK(index >= 0 && index < kParamCount); |
+ CHECK_LE(0, index); |
+ CHECK_LT(index, kParamCount); |
reps_[return_count_ + index] = type; |
} |
}; |