[LLVMbugs] [Bug 1715] New: getAnalysis<someimmutablepass> doesn' t work from doInitialization(Module&)
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Sep 29 19:41:29 PDT 2007
http://llvm.org/bugs/show_bug.cgi?id=1715
Summary: getAnalysis<someimmutablepass> doesn't work from
doInitialization(Module&)
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: minor
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gordonhenriksen at mac.com
CC: llvmbugs at cs.uiuc.edu
Quirkily, using getAnalysisToUpdate<someimmutablepass> instead does work.
AsmPrinter::doInitialization uses this behavior to get ahold of
MachineModuleInfo, which may not be present at all, so getAnalysisToUpdate is
appropriate.
However, I needed to unconditionally get a handle onto an ImmutablePass, and so
used getAnalysis instead. It failed an assertion that the pass was not required
(which was false).
--
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