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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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
type!");

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to