HomePhabricator

Remove the CFGElement "Invalid" state.

Authored by dblaikie on Feb 22 2013, 4:29 PM.

Description

Remove the CFGElement "Invalid" state.

Use Optional<CFG*> where invalid states were needed previously. In the one case
where that's not possible (beginAutomaticObjDtorsInsert) just use a dummy
CFGAutomaticObjDtor.

Thanks for the help from Jordan Rose & discussion/feedback from Ted Kremenek
and Doug Gregor.

Post commit code review feedback on r175796 by Ted Kremenek.

llvm-svn: 175938

Details

Committed
dblaikieFeb 22 2013, 4:29 PM
Parents
rG16c8cf0e11dd: Remove the hack that avoided mangling static functions in extern C contexts.
Branches
Unknown
Tags
Unknown