mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-29 20:33:50 +01:00
Clean up the code generated when jumping out of inline asm and make label names more expressive.
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosinghandler, T
|
||||
std::string labelname = gIR->func()->getScopedLabelName(target->toChars());
|
||||
llvm::BasicBlock*& targetBB = gIR->func()->labelToBB[labelname];
|
||||
if (targetBB == NULL)
|
||||
targetBB = llvm::BasicBlock::Create("label", gIR->topfunc());
|
||||
targetBB = llvm::BasicBlock::Create("label_" + labelname, gIR->topfunc());
|
||||
|
||||
// find finallys between goto and label
|
||||
EnclosingHandler* endfinally = enclosinghandler;
|
||||
|
||||
Reference in New Issue
Block a user