This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Remove redundant check
ClosedPublic

Authored by george.karpenkov on Feb 26 2018, 7:37 PM.

Details

Summary

There is no point in assigning void just to crash on it in the next line

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ added a comment.Feb 26 2018, 7:41 PM

I'm in favor of changing this API into two overrides: one accepts TypedValueRegion, another accepts MemRegion and mandatory QualType. This does good job informing the caller of the problem.

NoQ accepted this revision.Feb 26 2018, 7:41 PM
This revision is now accepted and ready to land.Feb 26 2018, 7:41 PM
This revision was automatically updated to reflect the committed changes.