C++: Add back getSubBasicBlockStart

It turns out this predicate was used in a test, and that use can't be
replaced with the new `partiallyDefinesVariableAt` predicate since
`partiallyDefinesVariableAt` doesn't hold for a `PartialDefinition` that
defines something other than a variable.
This commit is contained in:
Jonas Jensen
2020-08-27 11:14:47 +02:00
parent f3e98c3bea
commit e949c167fa

View File

@@ -124,6 +124,11 @@ private module PartialDefinitions {
deprecated predicate partiallyDefinesThis(ThisExpr e) { innerDefinedExpr = e }
/**
* Gets the subBasicBlock where this `PartialDefinition` is defined.
*/
ControlFlowNode getSubBasicBlockStart() { result = node }
/**
* Holds if this `PartialDefinition` defines variable `v` at control-flow
* node `cfn`.