[llvm-bugs] [Bug 45675] New: source/Plugins/Process/Darwin/CFUtils.h:37:15: error: No 'return' statement

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 25 23:52:07 PDT 2020


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

            Bug ID: 45675
           Summary: source/Plugins/Process/Darwin/CFUtils.h:37:15: error:
                    No 'return' statement
           Product: lldb
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: dcb314 at hotmail.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

source/Plugins/Process/Darwin/CFUtils.h:37:15: error: No 'return' statement in
non-void function causes undefined behavior. [operatorEqMissingReturnStatement]

Source code is

  CFReleaser &operator=(const CFReleaser<T> &copy) {
    if (copy != *this) {
      // Replace our owned pointer with the new one
      reset(copy.get());
      // Retain the current pointer that we own
      if (get())
        ::CFRetain(get());
    }
  }

Something of a mystery how that ever compiled.

-- 
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/20200426/cfbe8b29/attachment.html>


More information about the llvm-bugs mailing list