mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
Don't destruct a temporary if its constructor throws.
This commit is contained in:
parent
b9c77c266a
commit
6fefec5a07
3 changed files with 48 additions and 2 deletions
|
@ -76,6 +76,11 @@ bool FuncGen::hasTemporariesToDestruct()
|
|||
return !temporariesToDestruct.empty();
|
||||
}
|
||||
|
||||
VarDeclarations& FuncGen::getTemporariesToDestruct()
|
||||
{
|
||||
return temporariesToDestruct;
|
||||
}
|
||||
|
||||
void FuncGen::destructTemporaries(unsigned numToKeep)
|
||||
{
|
||||
// pop one temporary after the other from the temporariesToDestruct stack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue