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

Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2023-02-14 09:49:32 +00:00
committed by GitHub
parent 7a81f06e84
commit bda46b3748

View File

@@ -602,8 +602,8 @@ class InitialGlobalValue extends Node, TInitialGlobalValue {
exists(DataFlowType type |
type = globalDef.getUnspecifiedType() and
if this.isGLValue()
then result = globalDef.getUnspecifiedType()
else result = getTypeImpl(type.getUnspecifiedType(), globalDef.getIndirectionIndex() - 1)
then result = type
else result = getTypeImpl(type, globalDef.getIndirectionIndex() - 1)
)
}