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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs