[LLVMbugs] [Bug 12734] New: UnrollLoop crashes when a NULL LoopPassManager is passed in

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 3 14:09:06 PDT 2012


             Bug #: 12734
           Summary: UnrollLoop crashes when a NULL LoopPassManager is
                    passed in
           Product: new-bugs
           Version: 3.0
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sschiffli at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In the comments for UnrollLoop I saw this:
/// If a LoopPassManager is passed in, and the loop is fully removed, it will
/// removed from the LoopPassManager as well. LPM can also be NULL.

However if a NULL LPM is passed in the following line in UnrollLoop crashes:
ScalarEvolution *SE = LPM->getAnalysisIfAvailable<ScalarEvolution>();

Is is a comment bug or code bug?

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