mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Exclude partial defs from ordinary SSA handling
This commit is contained in:
committed by
Jonas Jensen
parent
5fbe982084
commit
46e6b587bc
@@ -173,6 +173,8 @@ module FlowVar_internal {
|
||||
// the call. It's fundamental in SSA that each use is only associated with
|
||||
// one def, so we can't easily get this effect with SSA.
|
||||
not definitionByReference(v.getAnAccess(), _) and
|
||||
// A partially-defined variable is handled using the partial definitions logic.
|
||||
not any(PartialDefinitions::PartialDefinition p).partiallyDefines(v) and
|
||||
// SSA variables do not exist before their first assignment, but one
|
||||
// feature of this data flow library is to track where uninitialized data
|
||||
// ends up.
|
||||
|
||||
Reference in New Issue
Block a user