[llvm-bugs] [Bug 50961] New: Casting.h really needs an isa_or_null<> template!
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 1 18:04:40 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50961
Bug ID: 50961
Summary: Casting.h really needs an isa_or_null<> template!
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: clattner at nondot.org
CC: llvm-bugs at lists.llvm.org
casting.h provides cast_or_null and dyn_cast_or_null but doesn't have the
corresponding isa_or_null operation that returns true if the value is null or
if it matches the list of types provided. Folks work around this by using
dyn_cast_or_null in a bool context, but it would be cleaner to just provide
this operation.
I think this is just a "no one has gotten around to it" sort of issue.
--
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/20210702/101b2593/attachment.html>
More information about the llvm-bugs
mailing list