mirror of
https://github.com/github/codeql.git
synced 2026-03-19 22:16:45 +01:00
C++: Add a predicate for getting the 0'th child of a 'ConditionDeclExpr' without casting it to a 'VariableAccess' and use it in IR generation.
This commit is contained in:
@@ -3173,7 +3173,7 @@ class TranslatedConditionDeclExpr extends TranslatedNonConstantExpr {
|
||||
private TranslatedConditionDecl getDecl() { result = getTranslatedConditionDecl(expr) }
|
||||
|
||||
private TranslatedExpr getConditionExpr() {
|
||||
result = getTranslatedExpr(expr.getVariableAccess().getFullyConverted())
|
||||
result = getTranslatedExpr(expr.getExpr().getFullyConverted())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user