[LLVMbugs] [Bug 11782] New: Bad cast in llvm::SCEVExpander::getAddRecExprPHILiterally

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 17 04:09:46 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11782

             Bug #: 11782
           Summary: Bad cast in
                    llvm::SCEVExpander::getAddRecExprPHILiterally
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7892
  --> http://llvm.org/bugs/attachment.cgi?id=7892
Test case

The attached input hits:

llvm/include/llvm/Support/Casting.h:194: typename llvm::cast_retty<To,
From>::ret_type llvm::cast(const Y&) [with X = llvm::Instruction, Y =
llvm::Value*, typename llvm::cast_retty<To, From>::ret_type =
llvm::Instruction*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of
incompatible type!"' failed.

from within getAddRecExprPHILiterally.

-- 
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