Skip to content

Commit

Permalink
Fail with a comprehensible error if bitmaps are used in rec/func mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
skvadrik committed Aug 26, 2024
1 parent a0c1968 commit 0d25d42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/options/opt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ LOCAL_NODISCARD(Ret fix_mutopt(
RET_FAIL(error("computed gotos are not supported in this code model"));
}
}
if (real.bitmaps && glob.code_model == CodeModel::REC_FUNC) {
// TODO: allow bitmaps before in rec/func mode
RET_FAIL(error("bitmaps are not supported in this code model"));
}

return Ret::OK;
}
Expand Down

0 comments on commit 0d25d42

Please sign in to comment.