From 54605aaf22ae2972529c300691465e70ce6c0a73 Mon Sep 17 00:00:00 2001 From: Robert Marsh Date: Wed, 25 Oct 2023 18:19:55 +0000 Subject: [PATCH] Swift: fix parameter types in dataflow pruning --- swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll b/swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll index 73976b3654a9..2fb5b8c76a84 100644 --- a/swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll +++ b/swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll @@ -419,7 +419,7 @@ private module ParameterNodes { override ParamDecl getParameter() { result = param } - override DataFlowType getTypeImpl() { result = param.getType() } + override DataFlowType getTypeImpl() { result = param.getType().getCanonicalType() } } class SummaryParameterNode extends ParameterNodeImpl, FlowSummaryNode {