<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 when passing an empty .ll file to Clang"
href="http://llvm.org/bugs/show_bug.cgi?id=16006">16006</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion when passing an empty .ll file to Clang
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rtrieu@google.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>$ touch empty.ll
$ ./clang -cc1 empty.ll
clang: /home/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:223: bool
clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, const
clang::FrontendInputFile&): Assertion `hasIRSupport() && "This action does not
have IR file support!"' failed.
0 clang 0x0000000001c8030e llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 clang 0x0000000001c80595
2 clang 0x0000000001c7ffe4
3 libpthread.so.0 0x00007ffdc09aecb0
4 libc.so.6 0x00007ffdbfe04425 gsignal + 53
5 libc.so.6 0x00007ffdbfe07b8b abort + 379
6 libc.so.6 0x00007ffdbfdfd0ee
7 libc.so.6 0x00007ffdbfdfd192
8 clang 0x0000000001f581e1
clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&,
clang::FrontendInputFile const&) + 1321
9 clang 0x0000000001f322fa
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 704
10 clang 0x0000000001c85184
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018
11 clang 0x0000000000cfffd4 cc1_main(char const**, char const**, char
const*, void*) + 722
12 clang 0x0000000000cf9a97 main + 496
13 libc.so.6 0x00007ffdbfdef76d __libc_start_main + 237
14 clang 0x0000000000cf8229
Stack dump:
0. Program arguments: ./clang -cc1 empty.ll
Aborted (core dumped)
Produces the same assert when running "./clang empty.ll -fsyntax-only"</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>