mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
Remove code for unimplemented goto-into-asm check.
The check was never fully implemented. We need to look into this again, as currently we fail with a fairly unintellegible LLVM ICE (added as GitHub #).
This commit is contained in:
parent
8b9deecf34
commit
15fd67be03
3 changed files with 0 additions and 10 deletions
|
@ -232,12 +232,6 @@ void DtoGoto(Loc loc, Identifier* target, TryFinallyStatement* sourceFinally)
|
|||
fatal();
|
||||
}
|
||||
|
||||
// if the target label is inside inline asm, error
|
||||
if(lblstmt->asmLabel) {
|
||||
error(loc, "cannot goto to label %s inside an inline asm block", target->toChars());
|
||||
fatal();
|
||||
}
|
||||
|
||||
// find target basic block
|
||||
std::string labelname = gIR->func()->gen->getScopedLabelName(target->toChars());
|
||||
llvm::BasicBlock*& targetBB = gIR->func()->gen->labelToBB[labelname];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue