mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
C++: Add a comment for ReusedExpr IR translation
This commit is contained in:
@@ -2769,6 +2769,13 @@ class TranslatedTemporaryObjectExpr extends TranslatedNonConstantExpr,
|
|||||||
final override Instruction getResult() { result = this.getTargetAddress() }
|
final override Instruction getResult() { result = this.getTargetAddress() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IR translation of a `ReuseExpr`.
|
||||||
|
*
|
||||||
|
* This translation produces a copy of the glvalue instruction holding the (unconverted) result
|
||||||
|
* of the reused expression. In the case where the original expression was a prvalue, the
|
||||||
|
* result will be a copy of the glvalue operand of a `TranslatedLoad`.
|
||||||
|
*/
|
||||||
class TranslatedReuseExpr extends TranslatedNonConstantExpr {
|
class TranslatedReuseExpr extends TranslatedNonConstantExpr {
|
||||||
override ReuseExpr expr;
|
override ReuseExpr expr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user