http://llvm.org/bugs/show_bug.cgi?id=7952
Summary: dyn_cast<> on multi-level pointers causes errors
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The isa<> template will succesfully work on a multi-level pointer, while the
cast<> template will not. This has unfortunate implications for dyn_cast<>,
because it performs an isa<> followed immediately by a cast<>. If a multi-level
pointer is used and the isa<> succeeds, a garbage value is returned.
(A multi-level pointer is something like Base**)
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs