<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - [x86] After r350966, on asm typo, Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast"
href="https://bugs.llvm.org/show_bug.cgi?id=43610">43610</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[x86] After r350966, on asm typo, Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>After <a href="https://reviews.llvm.org/rL350966">https://reviews.llvm.org/rL350966</a> ("[X86] Fix incomplete handling of
register-assigned variables in parsing"), a minor typo in assembly, namely
forgetting a comma, leads to an assertion failure:
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file /home/dim/src/llvm/trunk/include/llvm/Support/Casting.h,
line 255.
Stack dump:
0. Program arguments: /home/dim/ins/llvm-trunk-r350966/bin/clang -cc1as
-triple x86_64-- -filetype obj asmtypo.s
0 clang 0x00000000028b14b8
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 clang 0x00000000028af3d8 llvm::sys::RunSignalHandlers() + 248
2 clang 0x00000000028b1d58
llvm::sys::PrintStackTraceOnErrorSignal(llvm::StringRef, bool) + 1272
3 libthr.so.3 0x00000008043d0430 _pthread_sigmask + 1328
Abort trap
Test case:
// clang -cc1as -triple x86_64-- -filetype obj asmtypo.s
movl %ebx %eax
Before r350965, this resulted in a more regular error message:
$ ~/ins/llvm-trunk-r350965/bin/clang -cc1as -triple x86_64-- -filetype obj
asmtypo.s
asmtypo.s:2:11: error: unexpected token in argument list
movl %ebx %eax
^</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>