Crash in klocalizer when superc.py cannot build the compilation unit
Closed this issue · 0 comments
paulgazz commented
To get SuperC presence conditions, the tool first needs to get the compiler arguments. klocalizer does this by compiling the compilation unit. If the unit fails to build, it should not try to move on, otherwise there will be an assertion violation that halts klocalizer.
The source of the problem is the check for a failed unit compilation. is_unit_compiled
, however, is a list of Booleans, since check_if_compiles
supports multiple units.
The fix is to check whether any unit has failed, i.e., False in is_unit_compiled
. Since this code always passes a single unit, this should work.