From 1d558b84efb91471b9257cb093c7f59a97ddc3d5 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 1 Nov 2014 00:11:25 +0000 Subject: [PATCH] libcxxrt defines bad_array_new_length::what() so move that into a conditional compilation block llvm-svn: 221025 --- libcxx/src/new.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp index 2fb6e7fa..2b37601 100644 --- a/libcxx/src/new.cpp +++ b/libcxx/src/new.cpp @@ -200,6 +200,12 @@ bad_array_new_length::~bad_array_new_length() _NOEXCEPT { } +const char* +bad_array_new_length::what() const _NOEXCEPT +{ + return "bad_array_new_length"; +} + #endif //LIBCXXRT const char* @@ -216,12 +222,6 @@ bad_array_length::~bad_array_length() _NOEXCEPT { } -const char* -bad_array_new_length::what() const _NOEXCEPT -{ - return "bad_array_new_length"; -} - #endif // _LIBCPPABI_VERSION #ifndef LIBSTDCXX -- 2.7.4