Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
331:04e1b4930975 | 332:d7e6ace5cca4 |
---|---|
21 catchstmt->var->ir.irLocal->value = gIR->ir->CreateBitCast(catch_var, getPtrToType(DtoType(catchstmt->var->type))); | 21 catchstmt->var->ir.irLocal->value = gIR->ir->CreateBitCast(catch_var, getPtrToType(DtoType(catchstmt->var->type))); |
22 } | 22 } |
23 | 23 |
24 // emit handler, if there is one | 24 // emit handler, if there is one |
25 // handler is zero for instance for 'catch { debug foo(); }' | 25 // handler is zero for instance for 'catch { debug foo(); }' |
26 if(catchstmt->handler); | 26 if(catchstmt->handler) |
27 catchstmt->handler->toIR(gIR); | 27 catchstmt->handler->toIR(gIR); |
28 | 28 |
29 if (!gIR->scopereturned()) | 29 if (!gIR->scopereturned()) |
30 gIR->ir->CreateBr(end); | 30 gIR->ir->CreateBr(end); |
31 | 31 |