This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Replace most usages of getEndPath
ClosedPublic

Authored by george.karpenkov on Jun 11 2018, 11:58 AM.

Details

Summary

getEndPath is a problematic API, because it's not clear when it's called (hint: not always at the end of the path), it crashes at runtime with more than one non-nullptr returning implementation, and diagnostics internal depend on it being called at some exact place.

However, most visitors don't actually need that: all they want is a function consistently called after all nodes are traversed, to perform finalization and to decide whether invalidation is needed.

Diff Detail

Event Timeline

NoQ accepted this revision.Jun 12 2018, 12:24 PM
This revision is now accepted and ready to land.Jun 12 2018, 12:24 PM
This revision was automatically updated to reflect the committed changes.