mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
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:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user