mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
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:
committed by
GitHub
parent
7a81f06e84
commit
bda46b3748
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user