diff gen/llvmhelpers.h @ 356:44daf304421c trunk

[svn r377] The previous check was too strict, it completely disallowed gotos within finally blocks. This reenables them as long as they don't cross a finally boundary.
author ChristianK
date Mon, 14 Jul 2008 12:00:24 +0200
parents 6057fdf797d8
children bfb9d28f045a
line wrap: on
line diff
--- a/gen/llvmhelpers.h	Mon Jul 14 11:48:55 2008 +0200
+++ b/gen/llvmhelpers.h	Mon Jul 14 12:00:24 2008 +0200
@@ -17,7 +17,7 @@
 // return the LabelStatement from the current function with the given identifier or NULL if not found
 LabelStatement* DtoLabelStatement(Identifier* ident);
 // emit goto
-void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally);
+void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally, TryFinallyStatement* sourcetf);
 
 // generates IR for finally blocks between the 'start' and 'end' statements
 // will begin with the finally block belonging to 'start' and does not include