changeset 332:d7e6ace5cca4 trunk

[svn r353] Fix typo. (fixes empty catch handlers, like catch_02.d)
author ChristianK
date Fri, 11 Jul 2008 22:33:21 +0200
parents 04e1b4930975
children f7190d9eb70c
files ir/irlandingpad.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ir/irlandingpad.cpp	Fri Jul 11 21:06:39 2008 +0200
+++ b/ir/irlandingpad.cpp	Fri Jul 11 22:33:21 2008 +0200
@@ -23,7 +23,7 @@
 
     // emit handler, if there is one
     // handler is zero for instance for 'catch { debug foo(); }'
-    if(catchstmt->handler);
+    if(catchstmt->handler)
         catchstmt->handler->toIR(gIR);
 
     if (!gIR->scopereturned())