Skip to content

Commit bda46b3

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent 7a81f06 commit bda46b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,8 @@ class InitialGlobalValue extends Node, TInitialGlobalValue {
602602
exists(DataFlowType type |
603603
type = globalDef.getUnspecifiedType() and
604604
if this.isGLValue()
605-
then result = globalDef.getUnspecifiedType()
606-
else result = getTypeImpl(type.getUnspecifiedType(), globalDef.getIndirectionIndex() - 1)
605+
then result = type
606+
else result = getTypeImpl(type, globalDef.getIndirectionIndex() - 1)
607607
)
608608
}
609609

0 commit comments

Comments
 (0)