Skip to content

Commit b45473e

Browse files
committed
C++: more specific type in IndirectParameterAlloc
1 parent 70f6253 commit b45473e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal/AliasConfiguration.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ private import AliasAnalysis
55

66
private newtype TAllocation =
77
TVariableAllocation(IRVariable var) or
8-
TIndirectParameterAllocation(IRVariable var) {
8+
TIndirectParameterAllocation(IRAutomaticVariable var) {
99
exists(InitializeIndirectionInstruction instr | instr.getIRVariable() = var)
1010
} or
1111
TDynamicAllocation(CallInstruction call) {
@@ -74,7 +74,7 @@ class VariableAllocation extends Allocation, TVariableAllocation {
7474
}
7575

7676
class IndirectParameterAllocation extends Allocation, TIndirectParameterAllocation {
77-
IRVariable var;
77+
IRAutomaticVariable var;
7878

7979
IndirectParameterAllocation() { this = TIndirectParameterAllocation(var) }
8080

0 commit comments

Comments
 (0)