Visitar URL original
C++: IR translation for destruction of temporaries in dynamic initializers by rdmarsh2 · Pull Request #15981 · github/codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20260302201920/https://github.com/github/codeql/pull/15981
Skip to content

C++: IR translation for destruction of temporaries in dynamic initializers#15981

Draft
rdmarsh2 wants to merge 6 commits intogithub:mainfrom
rdmarsh2:rdmarsh2/cpp/temp-destructors-initializers
Draft

C++: IR translation for destruction of temporaries in dynamic initializers#15981
rdmarsh2 wants to merge 6 commits intogithub:mainfrom
rdmarsh2:rdmarsh2/cpp/temp-destructors-initializers

Conversation

@rdmarsh2
Copy link
Contributor

No description provided.

@rdmarsh2
Copy link
Contributor Author

The first four commits are from #15964 which is not yet merged

Comment on lines +2772 to +2778
/**
* 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`.
*/

Check warning

Code scanning / CodeQL

Class QLDoc style.

The QLDoc for a class should start with 'A', 'An', or 'The'.
)
}

private predicate isInConditionalEvaluation(Expr e) {

Check warning

Code scanning / CodeQL

Dead code

This code is never used, and it's not publicly exported.
isInConditionalEvaluation(getRealParent(e))
}

private predicate isConditionalTemporaryDestructorCall(DestructorCall dc) {

Check warning

Code scanning / CodeQL

Dead code

This code is never used, and it's not publicly exported.
@rdmarsh2 rdmarsh2 force-pushed the rdmarsh2/cpp/temp-destructors-initializers branch from a1dd47c to db8f970 Compare March 19, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant