[llvm-bugs] [Bug 25633] New: llvm/lib/Fuzzer/FuzzerDriver.cpp:155: redundant code ?

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 25 03:31:41 PST 2015


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

            Bug ID: 25633
           Summary: llvm/lib/Fuzzer/FuzzerDriver.cpp:155: redundant code ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

llvm/lib/Fuzzer/FuzzerDriver.cpp:155]: (performance) Passing the result of
c_str() to a function that takes std::string as argument no. 1 is slow and
redundant.

Source code is

   int ExitCode = ExecuteCommand(ToRun.c_str());

Suggest new code

   int ExitCode = ExecuteCommand(ToRun);

-- 
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/20151125/788a9c37/attachment.html>


More information about the llvm-bugs mailing list