Skip to content

Commit e1cfa73

Browse files
authored
Fix debug build against non-debug LLVM (JuliaLang#56590)
The ::dump functions are conditionally defined in LLVM. We have a helper to work around this, so use it.
1 parent 7fa26f0 commit e1cfa73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aotcompile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ static SmallVector<Partition, 32> partitionModule(Module &M, unsigned threads) {
11151115

11161116
bool verified = verify_partitioning(partitions, M, fvars, gvars);
11171117
if (!verified)
1118-
M.dump();
1118+
llvm_dump(&M);
11191119
assert(verified && "Partitioning failed to partition globals correctly");
11201120
(void) verified;
11211121

0 commit comments

Comments
 (0)