[LLVMbugs] [Bug 12858] New: Assertion `isa<Argument>(Val) && "Unknown live-in to the entry block"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 16 20:29:43 PDT 2012


             Bug #: 12858
           Summary: Assertion `isa<Argument>(Val) && "Unknown live-in to
                    the entry block"' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

[regehr at dyson r47]$ clang -v
clang version 3.2 (trunk 156970)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at dyson r47]$ cat small.c
int a;
void fn1 ();
void fn2 ();
void fn3 ();
void fn4 ();
fn5 (short p1, char p2)
    if (a)
        fn4 ();
        fn1 (p1);
    if (p1 >= 0)
        fn2 ();
        fn3 (p1);
        if (p1 == p2)
            fn4 ();
    return p2;
[regehr at dyson r47]$ clang -O2 small.c
clang: LazyValueInfo.cpp:605: bool <anonymous
&, llvm::Value *, llvm::BasicBlock *): Assertion `isa<Argument>(Val) &&
"Unknown live-in to the entry block"' failed.
0  clang           0x0000000001bb1d2f
1  clang           0x0000000001bb2244
2  libpthread.so.0 0x00007f462af8f8f0
3  libc.so.6       0x00007f462a27ea75 gsignal + 53
4  libc.so.6       0x00007f462a2825c0 abort + 384
5  libc.so.6       0x00007f462a277941 __assert_fail + 241
6  clang           0x00000000019caf25
7  clang           0x00000000019c5cb7
8  clang           0x00000000019c58a1
llvm::LazyValueInfo::getConstantOnEdge(llvm::Value*, llvm::BasicBlock*,
llvm::BasicBlock*) + 49
9  clang           0x000000000183cdae
10 clang           0x0000000001b51d1b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 443
11 clang           0x0000000001976e15
12 clang           0x0000000001b521f3
llvm::MPPassManager::runOnModule(llvm::Module&) + 419
13 clang           0x0000000001b52778 llvm::PassManagerImpl::run(llvm::Module&)
+ 408
14 clang           0x0000000001b528da llvm::PassManager::run(llvm::Module&) +
15 clang           0x0000000000775c50
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4912
16 clang           0x0000000000773b5a
17 clang           0x000000000089c1f5 clang::ParseAST(clang::Sema&, bool, bool)
+ 389
18 clang           0x0000000000772be8 clang::CodeGenAction::ExecuteAction() +
19 clang           0x000000000064460d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
20 clang           0x000000000062d8bb
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3307
21 clang           0x00000000006225eb cc1_main(char const**, char const**, char
const*, void*) + 731
22 clang           0x0000000000629fe8 main + 3464
23 libc.so.6       0x00007f462a269c4d __libc_start_main + 253
24 clang           0x0000000000622249
Stack dump:
0.    Program arguments:
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -resource-dir
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdebug-compilation-dir /home/regehr/z/reduce/r47 -ferror-limit 19
-fmessage-length 115 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/small-dDBX4L.o -x c small.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'small.c'.
4.    Running pass 'Value Propagation' on function '@fn5'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-Kn1yh6.i
clang: note: diagnostic msg: /tmp/small-Kn1yh6.sh

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list