[LLVMbugs] [Bug 16006] New: Assertion when passing an empty .ll file to Clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 14 15:34:13 PDT 2013


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

            Bug ID: 16006
           Summary: Assertion when passing an empty .ll file to Clang
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rtrieu at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ 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"

-- 
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/20130514/ce376681/attachment.html>


More information about the llvm-bugs mailing list