diff ir/irlandingpad.cpp @ 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 d772927ca496
children d22d8d63c1fd
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())