From 36b7b6cffe629bf55fa5a5606ef2532c97512a9a Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Thu, 14 Sep 2023 14:02:03 +0100 Subject: [PATCH] C++: Fix phi-phi flow. --- .../lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll b/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll index 7c34dc43d07..967734f1cfd 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll @@ -766,7 +766,7 @@ predicate fromPhiNode(SsaPhiNode nodeFrom, Node nodeTo) { or exists(PhiNode phiTo | phi != phiTo and - lastRefRedefExt(phi, _, _, phiTo) and + lastRefRedefExt(phi, bb1, i1, phiTo) and nodeTo.(SsaPhiNode).getPhiNode() = phiTo ) )