[LLVMbugs] [Bug 11217] New: LLVMTargetMachine.cpp assert not fully descriptive
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Oct 23 17:21:26 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11217
Summary: LLVMTargetMachine.cpp assert not fully descriptive
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xocotl at gmail.com
CC: llvmbugs at cs.uiuc.edu
LLVMTargetMachine.cpp says:
// TargetSelect.h moved to a different directory between LLVM 2.9 and 3.0,
// and if the old one gets included then MCAsmInfo will be NULL and
// we'll crash later.
// Provide the user with a useful error message about what's wrong.
assert(AsmInfo && "MCAsmInfo not initialized."
"Make sure you include the correct TargetSelect.h!");
This can also occur if you fail to do llvm::InitializeAllTargetMCs(), which is
new (to me anyway). Found this upgrading my code from 2.9-ish SVN to 3.0-ish
SVN.
It would be good if the assert mentioned this other possibility.
--
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