mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-24 00:33:12 +01: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:
@@ -5509,9 +5509,6 @@ LabelStatement::LabelStatement(Loc loc, Identifier *ident, Statement *statement)
|
||||
#endif
|
||||
this->lblock = NULL;
|
||||
this->fwdrefs = NULL;
|
||||
#if IN_LLVM
|
||||
this->asmLabel = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
Statement *LabelStatement::syntaxCopy()
|
||||
|
||||
@@ -943,7 +943,6 @@ struct LabelStatement : Statement
|
||||
void toIR(IRState *irs);
|
||||
|
||||
#if IN_LLVM
|
||||
bool asmLabel; // for labels inside inline assembler
|
||||
void toNakedIR(IRState *irs);
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user