Skip to content

Commit 48a1ee6

Browse files
authored
Merge pull request #4130 from erik-krogh/bbFix
Approved by asgerf
2 parents 29b3759 + e6bfffa commit 48a1ee6

File tree

3 files changed

+549
-2
lines changed

3 files changed

+549
-2
lines changed

javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ module DataFlow {
912912
function.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
913913
}
914914

915-
override BasicBlock getBasicBlock() { result = function.(ExprOrStmt).getBasicBlock() }
915+
override BasicBlock getBasicBlock() { result = function.getExit().getBasicBlock() }
916916

917917
/**
918918
* Gets the function corresponding to this exceptional return node.
@@ -938,7 +938,7 @@ module DataFlow {
938938
function.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
939939
}
940940

941-
override BasicBlock getBasicBlock() { result = function.(ExprOrStmt).getBasicBlock() }
941+
override BasicBlock getBasicBlock() { result = function.getExit().getBasicBlock() }
942942

943943
/**
944944
* Gets the function corresponding to this return node.

0 commit comments

Comments
 (0)