[PATCH] D25446: Disallow ArrayRef assignment from temporaries

Jordan Rose via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 13:48:01 PDT 2016


jordan_rose added a comment.

Ooh, I was wondering how to test it. That's a good one.

I'm a little sad but ultimately in favor of making those constructors explicit (or removed altogether with an error message pointing to `makeArrayRef`), but that's an incredibly breaking change for all clients of LLVM. This one at least should only catch true issues.


Repository:
  rL LLVM

https://reviews.llvm.org/D25446





More information about the llvm-commits mailing list