[LLVMbugs] [Bug 22576] New: Assertion failed: (LIsBuiltins && RIsBuiltins && "Non-built-in locations must be rooted in the main file"), function isBeforeInTranslationUnit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 13 04:05:39 PST 2015


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

            Bug ID: 22576
           Summary: Assertion failed: (LIsBuiltins && RIsBuiltins &&
                    "Non-built-in locations must be rooted in the main
                    file"), function isBeforeInTranslationUnit
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This assertion was originally reported in a FreeBSD PR:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197527

It reproduces with clang trunk r228967, and occurs during compilation of
WebKit's LowLevelInterpreter.cpp, which is file containing quite a lot of
generated inline assembly for the JavaScript engine.

I reduced the test case to just this two-liner:

    #pragma clang diagnostic ignored "-Wmissing-noreturn"
    __asm__(".Lfoo: movw r2, #:lower16:.Lbar - .Lfoo");

Compile this with:

    clang -cc1 -triple armv6 -emit-obj bug197527-reduced.c

Results in:

    Assertion failed: (LIsBuiltins && RIsBuiltins && "Non-built-in locations
must be rooted in the main file"), function isBeforeInTranslationUnit, file
/share/dim/src/llvm/trunk/tools/clang/lib/Basic/SourceManager.cpp, line 2091.
    Abort trap

-- 
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/20150213/d7ab4059/attachment.html>


More information about the llvm-bugs mailing list