Rafael EspĂndola
2006-Nov-30 13:34 UTC
[LLVMdev] Conditional jump or move depends on uninitialised value
llvm-gcc is producing segmentation fault when running with -emit-llvm. Running cc1 in valgind produces the warning: ==12768== at 0x8D042C: llvm::llvm_ostream& llvm::llvm_ostream::operator<< <llvm::Module>(llvm::Module const&) (Streams.h:41) ==12768== by 0x8D0464: llvm::PrintModulePass::runOnModule(llvm::Module&) (PrintModulePass.h:41) ==12768== by 0xED6EB9: llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*) (PassManagerT.h:849) ==12768== by 0xEED05F: llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm::Pass*>, std::allocator<std::pair<llvm::Pass* const, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> > > > >&) (PassManagerT.h:596) ==12768== by 0xEED5D7: llvm::PassManagerT<llvm::MTraits>::runOnUnit(llvm::Module*) (PassManagerT.h:282) ==12768== by 0xED4790: llvm::ModulePassManager::runOnModule(llvm::Module&) (PassManagerT.h:917) ==12768== by 0xED482B: llvm::PassManager::run(llvm::Module&) (Pass.cpp:85) ==12768== by 0x8C5312: llvm_asm_file_end (llvm-backend.cpp:383) ==12768== by 0x86F448: compile_file (toplev.c:1166) ==12768== by 0x871809: do_compile (toplev.c:2327) ==12768== by 0x871870: toplev_main (toplev.c:2359) ==12768== by 0x4BA112: main (llvm-main.cpp:37) I really cannot understand how Stream can be undefined on Streams.h:41 :-( Best Regards, Rafael