[LLVMbugs] [Bug 19871] New: translateSourceLocation has missing return

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 27 12:50:43 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19871

            Bug ID: 19871
           Summary: translateSourceLocation has missing return
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bernard.solomon at siemens.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I just noticed this when browsing code - there is a missing return keyword in
translateSourceLocation in CXSourceLocation.h

translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts,
                        SourceLocation Loc) {
  if (Loc.isInvalid())
    clang_getNullLocation(); // missing return here

-- 
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/20140527/16df1a96/attachment.html>


More information about the llvm-bugs mailing list