From f53135f39b3b4ac0a315aa92a0abb36e8ad3c62f 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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@221025 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/new.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/new.cpp b/src/new.cpp index 2fb6e7fa..2b37601c 100644 --- a/src/new.cpp +++ b/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