Skip to content

Commit 02e1cf0

Browse files
smowtontautschnig
authored andcommitted
Value-set: compare against real type, not followed type
1 parent f237338 commit 02e1cf0

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
@@ -1154,10 +1154,10 @@ void value_sett::assign(
11541154
}
11551155
else
11561156
{
1157-
if(rhs.type() != type)
1157+
if(rhs.type() != lhs.type())
11581158
throw "value_sett::assign type mismatch: "
11591159
"rhs.type():\n"+rhs.type().pretty()+"\n"+
1160-
"type:\n"+type.pretty();
1160+
"lhs.type():\n"+lhs.type().pretty();
11611161

11621162
rhs_member=make_member(rhs, name, ns);
11631163

0 commit comments

Comments
 (0)