Re-apply "Disallow ArrayRef assignment from temporaries."
authorJordan Rose <jordan_rose@apple.com>
Tue, 11 Oct 2016 20:39:16 +0000 (20:39 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 11 Oct 2016 20:39:16 +0000 (20:39 +0000)
commit764f9f7806aaaf41417d9c75091031a6c92099db
tree70505bcc3314cc3bf5a3188223d392977a3019b3
parent0846e56e631387297728eef680c394af8e086a2c
Re-apply "Disallow ArrayRef assignment from temporaries."

This re-applies r283798, disabled in r283803, with the static_assert
tests disabled under MSVC. The deleted functions still seem to catch
mistakes in MSVC, so it's not a significant loss.

Part of rdar://problem/16375365

llvm-svn: 283935
llvm/include/llvm/ADT/ArrayRef.h
llvm/unittests/ADT/ArrayRefTest.cpp