Merge pull request #3589 from rdmarsh2/ir-placement-new-consistency

C++: fix IR control flow for cast in placement new
This commit is contained in:
Mathias Vorreiter Pedersen
2020-05-30 13:27:34 +02:00
committed by GitHub
7 changed files with 62 additions and 10 deletions

View File

@@ -1698,7 +1698,8 @@ class TranslatedAllocatorCall extends TTranslatedAllocatorCall, TranslatedDirect
else
if index = 1 and expr.hasAlignedAllocation()
then result = getTranslatedExpr(expr.getAlignmentArgument())
else result = getTranslatedExpr(expr.getAllocatorCall().getArgument(index))
else
result = getTranslatedExpr(expr.getAllocatorCall().getArgument(index).getFullyConverted())
}
}