Skip to content

Commit be384e5

Browse files
Additional explanatory comment
1 parent c3d55d3 commit be384e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/goto-programs/rebuild_goto_start_function.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ std::unique_ptr<languaget> get_entry_point_language(
3030
{
3131
const irep_idt &mode = get_entry_point_mode(symbol_table);
3232

33-
// Get the relevant languaget to generate the new entry point with
33+
// Get the relevant languaget to generate the new entry point with.
3434
std::unique_ptr<languaget> language = get_language_from_mode(mode);
35+
// This might fail if the driver program hasn't registered that language.
3536
INVARIANT(language, "No language found for mode: " + id2string(mode));
3637
language->set_message_handler(message_handler);
3738
language->set_language_options(options);

0 commit comments

Comments
 (0)