[LLVMbugs] [Bug 11827] New: cast in LLVM-3.0 typename cast_retty<Instruction, Value *>::ret_type llvm::cast(llvm::Value *const &):

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 22 02:35:24 PST 2012


             Bug #: 11827
           Summary: cast in LLVM-3.0 typename cast_retty<Instruction,
                    Value *>::ret_type llvm::cast(llvm::Value *const &):
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: tyom_88 at mail.ru
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang: /home/artyom/llvm-3.0/llvm/include/llvm/Support/Casting.h:194: typename
cast_retty<Instruction, Value *>::ret_type llvm::cast(llvm::Value *const &):
Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
0  clang           0x000000000198681f
1  clang           0x0000000001986d39
2  libpthread.so.0 0x00007f7e08c69060
3  libc.so.6       0x00007f7e07f4b3a5 gsignal + 53
4  libc.so.6       0x00007f7e07f4eb0b abort + 379
5  libc.so.6       0x00007f7e07f43d4d __assert_fail + 221
6  clang           0x000000000169e4ee
7  clang           0x00000000018f1fcf
llvm::FPPassManager::runOnFunction(llvm::Function&) + 351
8  clang           0x00000000018f22bb
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
9  clang           0x00000000018f240b
llvm::MPPassManager::runOnModule(llvm::Module&) + 283
10 clang           0x00000000018f29d1 llvm::PassManagerImpl::run(llvm::Module&)
+ 289
11 clang           0x00000000018f2eea llvm::PassManager::run(llvm::Module&) +
12 clang           0x00000000007ccb3e
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4798
13 clang           0x00000000007cb077
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 263
14 clang           0x00000000008d7d19 clang::ParseAST(clang::Sema&, bool) + 441
15 clang           0x00000000007ca571 clang::CodeGenAction::ExecuteAction() +
16 clang           0x00000000006ab177
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 967
17 clang           0x0000000000695b30
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2848
18 clang           0x000000000068d932 cc1_main(char const**, char const**, char
const*, void*) + 5650
19 clang           0x0000000000691dd5 main + 757
20 libc.so.6       0x00007f7e07f3630d __libc_start_main + 237
21 clang           0x000000000068c25d
Stack dump:
0.    Program arguments: /home/artyom/llvm-3.0/build/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
sqlite3.c -mrelocation-model static -flattening -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version -momit-leaf-frame-pointer -coverage-file sqlite3.bc
-resource-dir /home/artyom/llvm-3.0/build/bin/../lib/clang/3.0
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /usr/include -ferror-limit 19 -fmessage-length 168
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o sqlite3.bc -x c sqlite3.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module 'sqlite3.c'.
4.    Running pass 'Flattening control flow' on function '@sqlite3VdbeExec'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (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) are located at:
clang: note: diagnostic msg: /tmp/sqlite3-0eqrHk.i

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