Merge pull request #18616 from MathiasVP/18592-follow-up

C++: #18592 follow-up
This commit is contained in:
Mathias Vorreiter Pedersen
2025-01-28 20:00:16 +00:00
committed by GitHub
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