[llvm-bugs] [Bug 45996] New: Missing realloc(malloc(X), Y) -> malloc(Y) fold

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 19 15:42:11 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45996

            Bug ID: 45996
           Summary: Missing realloc(malloc(X), Y) -> malloc(Y) fold
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Keywords: code-quality
          Severity: normal
          Priority: P
         Component: Transformation Utilities
          Assignee: unassignedbugs at nondot.org
          Reporter: nok.raven at gmail.com
                CC: llvm-bugs at lists.llvm.org

#include <stdlib.h>

void* foo()
{
    return realloc(malloc(16), 32);
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200519/652bc46e/attachment.html>


More information about the llvm-bugs mailing list