[LLVMbugs] [Bug 13910] New: Clang warns that __builtin_unreachable() is unreachable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 24 15:23:37 PDT 2012


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

             Bug #: 13910
           Summary: Clang warns that __builtin_unreachable() is
                    unreachable
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: htam at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9253
  --> http://llvm.org/bugs/attachment.cgi?id=9253
Reproducer program

Not exactly a bug, but it's a tad bit redundant.

$ clang -fsyntax-only foo.c -Weverything
foo.c:9:5: warning: will never be executed [-Wunreachable-code]
    __builtin_unreachable();
    ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.

At r164402.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list