Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gen/toir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,12 @@ class ToElemVisitor : public Visitor {
DtoAssign(e->loc, &dst, u, EXP::blit);
}
}

#if LLVM_VERSION_MAJOR >= 23
if (!p->scopebb()->getTerminatorOrNull()) {
#else
if (!p->scopebb()->getTerminator()) {
#endif
u_bb = p->scopebb();
}
createBranch(condend, p->scopebb());
Expand All @@ -2163,7 +2168,12 @@ class ToElemVisitor : public Visitor {
DtoAssign(e->loc, &dst, v, EXP::blit);
}
}

#if LLVM_VERSION_MAJOR >= 23
if (!p->scopebb()->getTerminatorOrNull()) {
#else
if (!p->scopebb()->getTerminator()) {
#endif
v_bb = p->scopebb();
}
createBranch(condend, p->scopebb());
Expand Down
Loading