[LLVMbugs] [Bug 21701] New: Wrong Type Check in StoreInst::AssertOK

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 1 09:08:10 PST 2014


            Bug ID: 21701
           Summary: Wrong Type Check in StoreInst::AssertOK
           Product: libraries
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Register Allocator
          Assignee: unassignedbugs at nondot.org
          Reporter: illusionist.neo at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In llvm/IR/Instructions.cpp, Wrong assert condition :

assert(getOperand(0)->getType() == cast<PointerType>
getOperand(1)->getType())->getElementType()&& "Ptr must be a pointer to Val

It must be :

assert(getOperand(0)->getType()->getTypeID() == cast<PointerType>
getOperand(1)->getType())->getElementType()->getTypeID()&& "Ptr must be a
pointer to Val type!");

as we are checking the Argument type , not the its pointer.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141201/5f77cf97/attachment.html>

More information about the llvm-bugs mailing list