[lld] r229410 - MSVC 2013 appears to be able to compile make_ptr_range without issue, so removing that guard in the unit test.
Aaron Ballman
aaron at aaronballman.com
Mon Feb 16 10:00:11 PST 2015
Author: aaronballman
Date: Mon Feb 16 12:00:11 2015
New Revision: 229410
URL: http://llvm.org/viewvc/llvm-project?rev=229410&view=rev
Log:
MSVC 2013 appears to be able to compile make_ptr_range without issue, so removing that guard in the unit test.
Modified:
lld/trunk/unittests/CoreTests/RangeTest.cpp
Modified: lld/trunk/unittests/CoreTests/RangeTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/CoreTests/RangeTest.cpp?rev=229410&r1=229409&r2=229410&view=diff
==============================================================================
--- lld/trunk/unittests/CoreTests/RangeTest.cpp (original)
+++ lld/trunk/unittests/CoreTests/RangeTest.cpp Mon Feb 16 12:00:11 2015
@@ -103,14 +103,11 @@ TEST(Range, passing) {
std::iota(v.begin(), v.end(), 0);
takes_range(make_range(v));
takes_range(make_range(implicit_cast<const std::vector<int> &>(v)));
- // MSVC Can't compile make_ptr_range.
-#ifndef _MSC_VER
static_assert(
std::is_same<decltype(make_ptr_range(v)), lld::range<int *>>::value,
"make_ptr_range should return a range of pointers");
takes_range(make_ptr_range(v));
takes_range(make_ptr_range(implicit_cast<const std::vector<int> &>(v)));
-#endif
int arr[] = { 0, 1, 2, 3, 4 };
takes_range(make_range(arr));
const int carr[] = { 0, 1, 2, 3, 4 };
More information about the llvm-commits
mailing list