Skip to content

Commit

Permalink
Fix debug build against non-debug LLVM (#56590)
Browse files Browse the repository at this point in the history
The ::dump functions are conditionally defined in LLVM. We have a helper
to work around this, so use it.
  • Loading branch information
Keno authored Nov 18, 2024
1 parent 7fa26f0 commit e1cfa73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ static SmallVector<Partition, 32> partitionModule(Module &M, unsigned threads) {

bool verified = verify_partitioning(partitions, M, fvars, gvars);
if (!verified)
M.dump();
llvm_dump(&M);
assert(verified && "Partitioning failed to partition globals correctly");
(void) verified;

Expand Down

0 comments on commit e1cfa73

Please sign in to comment.