summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Analysis/CFGBuildResult.h
Commit message (Collapse)AuthorAgeFilesLines
* [CFG] Fix an assertion failure with static initializersGabor Horvath2019-12-231-13/+22
| | | | | | | | | | | | | The CFGBlock::getLastCondition was not prepared for static initializer branches. This patch also revamps CFG unit tests. Earlier the lifetime of the AST was smaller than the CFG. So all the AST pointers within the CFG blocks were dangling. This was OK, since none of the tests dereferenced those pointers. This was, however, a timed bomb. There were patches in the past that were reverted partially due to this problem. Differential revision: https://reviews.llvm.org/D71791
* [analyzer][Dominators][NFC] Add unit testsKristof Umann2019-07-051-0/+69
Differential Revision: https://reviews.llvm.org/D62611 llvm-svn: 365179
OpenPOWER on IntegriCloud