http://llvm.org/bugs/show_bug.cgi?id=7637
Summary: Adding a GVN pass via LLVMAddGVNPass triggers an
assert.
Product: new-bugs
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
(Apologies for using D here, I can't get C and LLVM playing nicely.)
import llvm.c.Core;
import llvm.c.transforms.Scalar;
void main()
{
LLVMModuleRef _module = LLVMModuleCreateWithNameInContext("module",
LLVMGetGlobalContext());
LLVMPassManagerRef fpm = LLVMCreateFunctionPassManagerForModule(_module);
LLVMAddInstructionCombiningPass(fpm); /* Works. */
LLVMAddGVNPass(fpm); /* Triggers an assert. */
}
Attempting to run the executable results in this:
a.out: /home/bernard/src/llvm-2.7/include/llvm/PassAnalysisSupport.h:53:
llvm::AnalysisUsage& llvm::AnalysisUsage::addRequiredID(const llvm::PassInfo*):
Assertion `ID && "Pass class not registered!"' failed.
Aborted
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs