clang: /home/ryan/llvm/llvm_core/llvm-3.0/include/llvm/Support/Casting.h:194: typename cast_retty<PHINode, ilist_iterator<Instruction> >::ret_type llvm::cast(const llvm::ilist_iterator<llvm::Instruction> &): Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.<br>
0  clang           0x0000000001b3618f<br>1  clang           0x0000000001b366a9<br>2  libpthread.so.0 0x00007f5b07d3bc60<br>3  libc.so.6       0x00007f5b07026d05 gsignal + 53<br>4  libc.so.6       0x00007f5b0702aab6 abort + 390<br>
5  libc.so.6       0x00007f5b0701f7c5 __assert_fail + 245<br>6  LLVMPolly.so    0x00007f5b06dae9b8<br>7  clang           0x0000000001ad97cf llvm::FPPassManager::runOnFunction(llvm::Function&) + 351<br>8  clang           0x0000000001ad9059 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 329<br>
9  clang           0x0000000001ad8edb llvm::FunctionPassManager::run(llvm::Function&) + 139<br>10 clang           0x000000000076cd6c clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 5004<br>
11 clang           0x000000000076ad83<br>12 clang           0x0000000000884700 clang::ParseAST(clang::Sema&, bool) + 448<br>13 clang           0x000000000076a1fb clang::CodeGenAction::ExecuteAction() + 859<br>14 clang           0x000000000062b63d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957<br>
15 clang           0x00000000006147d7 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2247<br>16 clang           0x000000000060b81f cc1_main(char const**, char const**, char const*, void*) + 2991<br>17 clang           0x0000000000610c35 main + 757<br>
18 libc.so.6       0x00007f5b07011eff __libc_start_main + 255<br>19 clang           0x000000000060abad<br>Stack dump:<br>0.    Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -disable-free -main-file-name loop1.c -mrelocation-model static -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.0.20110327 -momit-leaf-frame-pointer -coverage-file loop1.c.ll -resource-dir /usr/local/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -fdebug-compilation-dir /home/ryan/llvm/llvm_core/llvm-3.0 -ferror-limit 19 -fmessage-length 100 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -load /home/ryan/llvm/llvm_core/llvm-3.0/tools/polly/Release+Asserts/lib/LLVMPolly.so -mllvm -polly -o loop1.c.ll -x c loop1.c <br>
1.    <eof> parser at end of file<br>2.    Per-function optimization<br>3.    Running pass 'Polly - Prepare code for polly' on function '@func'<br>clang: error: unable to execute command: Aborted<br>
clang: error: clang frontend command failed due to signal (use -v to see invocation)<br>clang: note: diagnostic msg: Please submit a bug report to <a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include command line arguments and all diagnostic information.<br>
clang: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at:<br>clang: note: diagnostic msg: /tmp/loop1-xX24bI.i<br>clang: note: diagnostic msg: /tmp/loop1-xX24bI.sh<br><br>This code was running fine earlier today before I "up"'d the svn checkout for everything (polly, clang, llvm) and reinstalled updated cloog. I have attached a test case.<br>
<br>I am compiling with this:<br><br>clang -Xclang -load -Xclang ${PATH_TO_POLLY_LIB}LLVMPolly.so $1 -mllvm -polly -O3 -S -emit-llvm<br>