Mercurial > projects > ldc
diff gen/irstate.h @ 1412:3f5ea912149d
Fix #308 by giving finally code emitted by EnclosingTryFinally a different landing pad.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 23 May 2009 00:23:39 +0200 |
parents | 329e45865d84 |
children | 4dca8ed9d8b7 |
line wrap: on
line diff
--- a/gen/irstate.h Fri May 22 21:38:01 2009 +0200 +++ b/gen/irstate.h Sat May 23 00:23:39 2009 +0200 @@ -175,8 +175,8 @@ template <typename InputIterator> llvm::CallSite IRState::CreateCallOrInvoke(LLValue* Callee, InputIterator ArgBegin, InputIterator ArgEnd, const char* Name) { - llvm::BasicBlock* pad; - if(pad = func()->landingPad.get()) + llvm::BasicBlock* pad = func()->landingPad; + if(pad) { // intrinsics don't support invoking and 'nounwind' functions don't need it. LLFunction* funcval = llvm::dyn_cast<LLFunction>(Callee);