mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +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
|
or
|
||||||
blockVarDefinedByReference(this, v, _)
|
blockVarDefinedByReference(this, v, _)
|
||||||
or
|
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
|
// It is not necessary to cut the basic blocks at `Initializer` nodes
|
||||||
// because the affected variable can have no _other_ value before its
|
// because the affected variable can have no _other_ value before its
|
||||||
// initializer. It is not necessary to cut basic blocks at procedure
|
// initializer. It is not necessary to cut basic blocks at procedure
|
||||||
|
|||||||
Reference in New Issue
Block a user