[LLVMbugs] [Bug 5036] New: llc crashes on Windows due to NULL X86AsmPrinter::MMI
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Sep 23 13:41:47 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5036
Summary: llc crashes on Windows due to NULL X86AsmPrinter::MMI
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ofv at wanadoo.es
CC: llvmbugs at cs.uiuc.edu
Crashes on mingw and VC for every .bc file I tried, but not on Linux.
This is the stack trace:
llc.exe!llvm::MachineModuleInfo::getObjFileInfo<llvm::X86COFFMachineModuleInfo>()
Line 167 + 0x3 bytes C++
llc.exe!llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction
& MF={...}) Line 145 + 0xb bytes C++
llc.exe!llvm::MachineFunctionPass::runOnFunction(llvm::Function &
F={...}) Line 31 + 0x13 bytes C++
llc.exe!llvm::FPPassManager::runOnFunction(llvm::Function & F={...})
Line 1380 + 0x17 bytes C++
llc.exe!llvm::FunctionPassManagerImpl::run(llvm::Function & F={...})
Line 1332 + 0x1b bytes C++
llc.exe!llvm::FunctionPassManager::run(llvm::Function & F={...}) Line
1262 + 0xf bytes C++
llc.exe!main(int argc=3, char * * argv=0x001c4648) Line 393 C++
The problem is in X86AsmPrinter::runOnMachineFunction:
if (Subtarget->isTargetCOFF()) {
X86COFFMachineModuleInfo &COFFMMI =
MMI->getObjFileInfo<X86COFFMachineModuleInfo>();
MMI is NULL.
--
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