Index: src/compiler/instruction.h |
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h |
index 74efd86fbecef0510076425900b4a1d6743003ac..a01f508e19c9f7670623ccd0388ec7512195afe4 100644 |
--- a/src/compiler/instruction.h |
+++ b/src/compiler/instruction.h |
@@ -1340,8 +1340,7 @@ class InstructionSequence final : public ZoneObject { |
void MarkAsRepresentation(MachineRepresentation rep, int virtual_register); |
bool IsReference(int virtual_register) const { |
- return GetRepresentation(virtual_register) == |
- MachineRepresentation::kTagged; |
+ return CanBeTaggedPointer(GetRepresentation(virtual_register)); |
} |
bool IsFP(int virtual_register) const { |
return IsFloatingPoint(GetRepresentation(virtual_register)); |