Skip to content

Commit

Permalink
Strictly follow C standard w.r.t. reading union fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jxyang committed May 30, 2019
1 parent c7e6a90 commit 242f888
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/FactUnion.cpp
Expand Up @@ -279,12 +279,6 @@ FactUnion::imply(const Fact& f) const
if (t->SizeInBytes() == SIZE_UNKNOWN || other_t->SizeInBytes() == SIZE_UNKNOWN) {
return false;
}
if (t->SizeInBytes() <= other_t->SizeInBytes()) {
// only safe is the other field is not bitfield
if (!var->type->is_bitfield(fu.get_last_written_fid())) {
return true;
}
}
}
}
return false;
Expand Down

0 comments on commit 242f888

Please sign in to comment.