[llvm-commits] [PATCH] Casting.h: Don't cast away const with static_cast<>

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Mar 20 08:05:13 PDT 2013


On 5 October 2012 00:26, Sean Silva <silvas at purdue.edu> wrote:
> Does this look right? Or is there some subtlety here that is eluding me?

It looks like the problem is that large parts of this code is dead :-(
Also, if I understand it correctly, we don't need specializations for
both Foo and const Foo. We can specialize just for Foo and have
getSimplifiedValue take a const Foo&.

The attached patch removes the dead bits and simplifies what is left. OK?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 8691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130320/13a45c8f/attachment.obj>


More information about the llvm-commits mailing list