mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-23 12:10:06 +00:00
109ce225c9
entry_block_to_construct_ maps an entry block to its construct. The key in this map (the entry block) is not unique, and therefore the entry for the continue construct gets overwritten when the selection construct is discovered. Since a given block may be the entry block of different types of constructs, the (basic_block, construct_type) pair should be able to uniquely identify the construct. Adds test: - In this test, a basic block is the entry block of a continue construct as well as the entry block of a selection construct. It can be shown that this unit test would crash without the fix in this PR and passes with the fix in this PR. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
val_capability_test.cpp | ||
val_cfg_test.cpp | ||
val_data_test.cpp | ||
val_fixtures.cpp | ||
val_fixtures.h | ||
val_id_test.cpp | ||
val_layout_test.cpp | ||
val_limits_test.cpp | ||
val_ssa_test.cpp | ||
val_state_test.cpp | ||
val_storage_test.cpp |