Skip to content

Commit bfe42a6

Browse files
committed
Ruby: QL4QL fix
1 parent 384e7c7 commit bfe42a6

File tree

1 file changed

+1
-3
lines changed
  • ruby/ql/lib/codeql/ruby/dataflow

1 file changed

+1
-3
lines changed

ruby/ql/lib/codeql/ruby/dataflow/SSA.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,7 @@ module Ssa {
309309
* an entry definition for `self` is inserted at the start of the `do` block.
310310
*/
311311
class CapturedSelfDefinition extends CapturedEntryDefinition {
312-
private SelfVariable v;
313-
314-
CapturedSelfDefinition() { this.getSourceVariable() = v }
312+
CapturedSelfDefinition() { this.getSourceVariable() instanceof SelfVariable }
315313
}
316314

317315
/**

0 commit comments

Comments
 (0)