Revert "C++: Don't generate parameter nodes for bodyless parameters when there is a summary of the enclosing function."

This reverts commit ad80b36074.
This commit is contained in:
Mathias Vorreiter Pedersen
2025-01-28 17:09:45 +00:00
parent ff9a4d02f0
commit a35ed57848
2 changed files with 1 additions and 2 deletions

View File

@@ -1009,7 +1009,7 @@ class CastNode extends Node {
}
cached
newtype TDataFlowCallable =
private newtype TDataFlowCallable =
TSourceCallable(Cpp::Declaration decl) or
TSummarizedCallable(FlowSummaryImpl::Public::SummarizedCallable c)

View File

@@ -66,7 +66,6 @@ private newtype TIRDataFlowNode =
TFinalGlobalValue(Ssa::GlobalUse globalUse) or
TInitialGlobalValue(Ssa::GlobalDef globalUse) or
TBodyLessParameterNodeImpl(Parameter p, int indirectionIndex) {
not exists(TSummarizedCallable(p.getFunction())) and
// Rule out parameters of catch blocks.
not exists(p.getCatchBlock()) and
// We subtract one because `getMaxIndirectionsForType` returns the maximum