Skip to content

llvm/lib/Transforms/Utils/Debugify.cpp:240:54: warning: Possible null pointer dereference  #97626

Closed
@dcb314

Description

@dcb314

Static analyser cppcheck says:

llvm/lib/Transforms/Utils/Debugify.cpp:240:54: warning: Possible null pointer dereference if the default parameter value is used: DebugInfoBeforePass [nullPointerDefaultArg]

Source code is

return collectDebugInfoMetadata(M, M.functions(), *DebugInfoBeforePass,
"ModuleDebugify (original debuginfo)",
NameOfWrappedPass);

I don't see any sanity check that DebugInfoBeforePass is non-null.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions