mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix break out of non-nothrow range foreach.
Fixes DMD testcase 'test9068'.
This commit is contained in:
@@ -40,8 +40,18 @@ struct IRTargetScope
|
||||
llvm::BasicBlock* breakTarget;
|
||||
llvm::BasicBlock* continueTarget;
|
||||
|
||||
/// If true, the breakTarget is only considered if it is explicitly
|
||||
/// specified (via s), and not for unqualified "break;" statements.
|
||||
bool onlyLabeledBreak;
|
||||
|
||||
IRTargetScope();
|
||||
IRTargetScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* continueTarget, llvm::BasicBlock* breakTarget);
|
||||
IRTargetScope(
|
||||
Statement* s,
|
||||
EnclosingHandler* enclosinghandler,
|
||||
llvm::BasicBlock* continueTarget,
|
||||
llvm::BasicBlock* breakTarget,
|
||||
bool onlyLabeledBreak = false
|
||||
);
|
||||
};
|
||||
|
||||
struct FuncGen
|
||||
|
||||
Reference in New Issue
Block a user