Skip to content

Commit 555ff9a

Browse files
committed
Revert "strengthen assignment type consistency"
This reverts commit caae4ce. Reverting because we can't currently meet either the weak (base_type_eq) or the strong (==) consistency requirement. Let's target the weak one first.
1 parent 738fbde commit 555ff9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/std_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class code_assignt:public codet
303303

304304
DATA_CHECK(
305305
vm,
306-
code.op0().type() == code.op1().type(),
306+
base_type_eq(code.op0().type(), code.op1().type(), ns),
307307
"lhs and rhs of assignment must have same type");
308308
}
309309

0 commit comments

Comments
 (0)