Skip to content

Commit 0aa1434

Browse files
authored
Update cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll
1 parent a74189f commit 0aa1434

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ class ConstevalOrNotConstevalIfStmt extends Stmt, @stmt_consteval_or_not_constev
456456
* ```
457457
* the result is the `BlockStmt` `{ return true; }`.
458458
*/
459-
Stmt getThen() { consteval_if_then(underlyingElement(this), unresolveElement(result)) }
459+
Stmt getThen() { this.getChild(1) }
460460

461461
/**
462462
* Gets the 'else' statement of this '(not) constexpr if' statement, if any.

0 commit comments

Comments
 (0)