Skip to content

Commit 7e3ef2d

Browse files
committed
C++: We only call this predicate with unspecified types.
1 parent 85bd702 commit 7e3ef2d

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,11 @@ private class SideEffectArgumentNode extends ArgumentNode, SideEffectOperandNode
593593
}
594594
}
595595

596-
private Type stripReferences(Type type) {
597-
exists(Type unspecifiedType | unspecifiedType = type.getUnspecifiedType() |
598-
result = unspecifiedType.(Cpp::ReferenceType).getBaseType().getUnspecifiedType()
599-
or
600-
not unspecifiedType instanceof Cpp::ReferenceType and
601-
result = unspecifiedType
602-
)
596+
private Type stripReferences(Type unspecifiedType) {
597+
result = unspecifiedType.(Cpp::ReferenceType).getBaseType().getUnspecifiedType()
598+
or
599+
not unspecifiedType instanceof Cpp::ReferenceType and
600+
result = unspecifiedType
603601
}
604602

605603
private predicate forwardingCallTargetsConstructor(

0 commit comments

Comments
 (0)