Skip to content

Commit 00b6873

Browse files
smowtonDaniel Kroening
authored andcommitted
Value-set: compare against real type, not followed type
1 parent dde5d34 commit 00b6873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pointer-analysis/value_set.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,10 @@ void value_sett::assign(
11561156
}
11571157
else
11581158
{
1159-
if(rhs.type() != type)
1159+
if(rhs.type() != lhs.type())
11601160
throw "value_sett::assign type mismatch: "
11611161
"rhs.type():\n"+rhs.type().pretty()+"\n"+
1162-
"type:\n"+type.pretty();
1162+
"lhs.type():\n"+lhs.type().pretty();
11631163

11641164
rhs_member=make_member(rhs, name, ns);
11651165

0 commit comments

Comments
 (0)