Closed
Description
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.