Skip to content

Commit d09a660

Browse files
authored
Update cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll
1 parent 2c61460 commit d09a660

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/lib/semmle/code/cpp/stmts

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class ConstevalOrNotConstevalIfStmt extends Stmt, @stmt_consteval_or_not_constev
471471
* ```
472472
* there is no result.
473473
*/
474-
Stmt getElse() { consteval_if_else(underlyingElement(this), unresolveElement(result)) }
474+
Stmt getElse() { result = this.getChild(2) }
475475

476476
/**
477477
* Holds if this '(not) constexpr if' statement has an 'else' statement.

0 commit comments

Comments
 (0)