[Patch] Add array support to EndianStream.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 22 11:29:43 PST 2016


On 22 January 2016 at 12:49, David Blaikie <dblaikie at gmail.com> wrote:
> I think I remember now why this wouldn't work - because we wouldn't get any
> template type argument deduction if we used ArrayRef. That's unfortunate...

Correct. But note that the problem with

LE.write({0x1234, 0x5678})

is that the type is inferred to int and as far as I can tell you need
a typedef for it to work.

With arrayref at least a typedef is not needed.

I will upload a new patch. Thanks for the suggestion.


More information about the llvm-commits mailing list