mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-30 11:00:05 +02:00
[svn r85] Fixed: if a return statement appeared in the try block of a nested try-finally, only the inner-most finally block would be executed.
Changed: Renamed all the LLVM_Dto... helper function to just Dto...
This commit is contained in:
@@ -69,11 +69,10 @@ public:
|
||||
struct IRFinally
|
||||
{
|
||||
llvm::BasicBlock* bb;
|
||||
bool ret;
|
||||
llvm::Value* retval;
|
||||
llvm::BasicBlock* retbb;
|
||||
|
||||
IRFinally();
|
||||
IRFinally(llvm::BasicBlock* b);
|
||||
IRFinally(llvm::BasicBlock* b, llvm::BasicBlock* rb);
|
||||
};
|
||||
|
||||
// represents a function
|
||||
@@ -87,6 +86,7 @@ struct IRFunction
|
||||
// finally blocks
|
||||
typedef std::vector<IRFinally> FinallyVec;
|
||||
FinallyVec finallys;
|
||||
llvm::Value* finallyretval;
|
||||
|
||||
IRFunction(FuncDeclaration*);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user