Skip to content

Commit

Permalink
Revert CIRGenItaniumCXXABI.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bruteforceboy authored Feb 4, 2025
1 parent 22fdf39 commit ba03e3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,11 @@ void CIRGenItaniumCXXABI::emitRethrow(CIRGenFunction &CGF, bool isNoReturn) {
auto currentBlock = builder.getInsertionBlock();
auto reg = currentBlock->getParent();

bool branch = !currentBlock->empty();
bool branch = false;
if (currentBlock->empty())
currentBlock->erase();
else
branch = true;

auto rethrowBlock = builder.createBlock(reg);
builder.setInsertionPointToStart(rethrowBlock);
Expand Down

0 comments on commit ba03e3f

Please sign in to comment.