Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander.nutz committed Nov 29, 2024
1 parent 66697fe commit 3642403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ elif [[ $1 == "ganalyze" ]]; then
echo "analyzing (gcc) ..."
prepare
echo "# starting analyzer (gcc)"
"$GCC" -fanalyzer -fsanitize-trap=undefined $ANALYZER_FLAGS $FILES
# gcc assumes that malloc() might return null, and therefore emits tons of null errors. the important ones get catched by clang analyzer anyways.
"$GCC" -fanalyzer -fsanitize-trap=undefined -fsyntax-only $ANALYZER_FLAGS $FILES "-Wno-return-type" "-Wno-analyzer-possible-null-argument" "-Wno-analyzer-possible-null-dereference"
elif [[ $1 == "info" ]]; then
echo CC:
"$CC" --version
Expand Down
1 change: 1 addition & 0 deletions ir/opt/ll_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ static void runSched(vx_IrBlock* block, struct Move **to_move, size_t *to_move_l
if (ok && vx_IrOp_allDepsInRangeOrArgs(block, op, block->first, beforeFirst))
{
*to_move = realloc(*to_move, (*to_move_len + 1) * sizeof(struct Move));
assert(*to_move);
(*to_move)[(*to_move_len)++] = (struct Move) {
.what = op,
.before = first,
Expand Down

0 comments on commit 3642403

Please sign in to comment.