mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Only split BBs for var-defining partial-defs
This commit is contained in:
committed by
Jonas Jensen
parent
46e6b587bc
commit
abcaeded23
@@ -692,7 +692,8 @@ module FlowVar_internal {
|
||||
or
|
||||
blockVarDefinedByReference(this, v, _)
|
||||
or
|
||||
this = any(PartialDefinitions::PartialDefinition p).getSubBasicBlockStart()
|
||||
this = any(PartialDefinitions::PartialDefinition p | p.partiallyDefines(v))
|
||||
.getSubBasicBlockStart()
|
||||
// It is not necessary to cut the basic blocks at `Initializer` nodes
|
||||
// because the affected variable can have no _other_ value before its
|
||||
// initializer. It is not necessary to cut basic blocks at procedure
|
||||
|
||||
Reference in New Issue
Block a user