Skip to content

Commit

Permalink
Update cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll
Browse files Browse the repository at this point in the history
  • Loading branch information
jketema authored Jan 20, 2025
1 parent 2c61460 commit d09a660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class ConstevalOrNotConstevalIfStmt extends Stmt, @stmt_consteval_or_not_constev
* ```
* there is no result.
*/
Stmt getElse() { consteval_if_else(underlyingElement(this), unresolveElement(result)) }
Stmt getElse() { result = this.getChild(2) }

/**
* Holds if this '(not) constexpr if' statement has an 'else' statement.
Expand Down

0 comments on commit d09a660

Please sign in to comment.