Index: runtime/vm/assembler_x64.cc |
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc |
index 74f0ece47c0c84998778529804a2df1febb6e8e3..48e2613ede234e7db956b4c79f41d337ea9d760d 100644 |
--- a/runtime/vm/assembler_x64.cc |
+++ b/runtime/vm/assembler_x64.cc |
@@ -3702,9 +3702,9 @@ void Assembler::LoadClassIdMayBeSmi(Register result, Register object) { |
// if it is a Smi, which will be ignored. |
LoadClassId(result, object); |
- movq(object, Immediate(kSmiCid)); |
+ movq(TMP, Immediate(kSmiCid)); |
// If object is a Smi, move the Smi cid into result. o/w leave alone. |
- cmoveq(result, object); |
+ cmoveq(result, TMP); |
} |