[LLVMbugs] [Bug 22287] New: [CaptureTracking] Should be casting user as Operator, not Instruction

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 21 14:50:17 PST 2015


            Bug ID: 22287
           Summary: [CaptureTracking] Should be casting user as Operator,
                    not Instruction
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Global Analyses
          Assignee: unassignedbugs at nondot.org
          Reporter: mcrosier at codeaurora.org
                CC: hfinkel at anl.gov, llvmbugs at cs.uiuc.edu,
                    nlewycky at google.com
    Classification: Unclassified

I'm working on a project that is using capture tracking, but I'm hitting an
assert in Casting.h because I'm trying to cast a GetElementPtrConstantExpr to
an Instruction.  AFAICT, my code is valid.

The asserting cast on line 188:

 Instruction *I = cast<Instruction>(U->getUser());

I believe casting the User as an Operator would fix the issue.

 Operator *I = cast<Operator>(U->getUser());

Hopefully, someone with more experience with the Capture Tracker can create a
simple test case.  If not, I can see if I can reduce one myself.

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/20150121/01fce96b/attachment.html>

More information about the llvm-bugs mailing list