mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: Make a return node the last node before function exit
This commit is contained in:
@@ -190,7 +190,7 @@ module Node {
|
||||
|
||||
/** A data flow node that represents a value returned by a callable. */
|
||||
final class ReturnNode extends ExprNode {
|
||||
ReturnNode() { this.asExpr() instanceof ReturnExpr }
|
||||
ReturnNode() { this.getCfgNode().getASuccessor() instanceof ExitCfgNode }
|
||||
|
||||
ReturnKind getKind() { any() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user