http://llvm.org/bugs/show_bug.cgi?id=22287
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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs