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

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@lists.llvm.org
Reporter dcb314@hotmail.com
CC jdevlieghere@apple.com, llvm-bugs@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.