Skip to content

Commit 753e9b1

Browse files
committed
Properly name conversion BB to avoid multiple entry blocks.
1 parent fdb6d06 commit 753e9b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/irgen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ function lower_byval(@nospecialize(job::CompilerJob), mod::LLVM.Module, f::LLVM.
516516
# emit IR performing the "conversions"
517517
new_args = LLVM.Value[]
518518
@dispose builder=Builder(ctx) begin
519-
entry = BasicBlock(new_f, "entry"; ctx)
519+
entry = BasicBlock(new_f, "conversion"; ctx)
520520
position!(builder, entry)
521521

522522
# perform argument conversions

src/spirv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function wrap_byval(@nospecialize(job::CompilerJob), mod::LLVM.Module, f::LLVM.F
262262
# emit IR performing the "conversions"
263263
new_args = Vector{LLVM.Value}()
264264
@dispose builder=Builder(ctx) begin
265-
entry = BasicBlock(new_f, "entry"; ctx)
265+
entry = BasicBlock(new_f, "conversion"; ctx)
266266
position!(builder, entry)
267267

268268
# perform argument conversions

0 commit comments

Comments
 (0)