[llvm] r261155 - Fix warning on build without asserts

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 13:39:10 PST 2016


On 17 Feb 2016, at 13:35, David Blaikie <dblaikie at gmail.com> wrote:
> PtrsTy->getElementType()->getPointerElementType() == 
>              DataTy->getElementType()

Tried that, but clang-format made it uglier than the #ifndefs IMO.

> But the other thing to note is that pointer element types will be going away eventually (that being the point of the typeless pointer work I've been doing (I know it's been a bit quiet on that front of late - will be getting back to it)).

Sure, but a mismatch is still an ill-formed instruction for now so I think we should be able to assert on it.

Cheers.

Tim.


More information about the llvm-commits mailing list