Issue 97626
Summary llvm/lib/Transforms/Utils/Debugify.cpp:240:54: warning: Possible null pointer dereference
Labels llvm, llvm:transforms
Assignees
Reporter 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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to