CFG generation is expected to fail in this case, but it should not crash.
Also added a test that reproduces the crash.
Paths
| Differential D21895
CFGBuilder: Fix crash when visiting a range-based for over a dependent type ClosedPublic Authored by mboehme on Jun 30 2016, 7:58 AM.
Details Summary CFG generation is expected to fail in this case, but it should not crash. Also added a test that reproduces the crash.
Diff Detail Event Timeline
mboehme marked an inline comment as done. This revision is now accepted and ready to land.Jul 6 2016, 2:49 AM Closed by commit rL274834: CFGBuilder: Fix crash when visiting a range-based for over a dependent type (authored by alexfh). · Explain WhyJul 8 2016, 3:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 62362 lib/Analysis/CFG.cpp
unittests/Analysis/CFGTest.cpp
unittests/Analysis/CMakeLists.txt
unittests/CMakeLists.txt
|
I think we want to assert that we at least found func once with a body.