<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Assertion failed: (LIsBuiltins && RIsBuiltins && "Non-built-in locations must be rooted in the main file"), function isBeforeInTranslationUnit"
href="http://llvm.org/bugs/show_bug.cgi?id=22576">22576</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: (LIsBuiltins && RIsBuiltins && "Non-built-in locations must be rooted in the main file"), function isBeforeInTranslationUnit
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dimitry@andric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This assertion was originally reported in a FreeBSD PR:
<a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197527">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197527</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>