diff --git a/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h --- a/libcxxabi/src/demangle/ItaniumDemangle.h +++ b/libcxxabi/src/demangle/ItaniumDemangle.h @@ -61,13 +61,13 @@ if (isInline()) { auto *Tmp = static_cast(std::malloc(NewCap * sizeof(T))); if (Tmp == nullptr) - std::terminate(); + std::abort(); std::copy(First, Last, Tmp); First = Tmp; } else { First = static_cast(std::realloc(First, NewCap * sizeof(T))); if (First == nullptr) - std::terminate(); + std::abort(); } Last = First + S; Cap = First + NewCap; diff --git a/libcxxabi/src/demangle/README.txt b/libcxxabi/src/demangle/README.txt --- a/libcxxabi/src/demangle/README.txt +++ b/libcxxabi/src/demangle/README.txt @@ -34,7 +34,7 @@ identical between both copies to simplify development and testing. If you're working on the generic library, then do the work first in -libcxxabi, then run the cp-to-llvm.sh script in src/demangle. This +libcxxabi, then run libcxxabi/src/demangle/cp-to-llvm.sh. This script takes as an optional argument the path to llvm, and copies the changes you made to libcxxabi over. Note that this script just blindly overwrites all changes to the generic library in llvm, so be diff --git a/libcxxabi/src/demangle/Utility.h b/libcxxabi/src/demangle/Utility.h --- a/libcxxabi/src/demangle/Utility.h +++ b/libcxxabi/src/demangle/Utility.h @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -49,7 +48,7 @@ BufferCapacity = Need; Buffer = static_cast(std::realloc(Buffer, BufferCapacity)); if (Buffer == nullptr) - std::terminate(); + std::abort(); } } diff --git a/llvm/include/llvm/Demangle/ItaniumDemangle.h b/llvm/include/llvm/Demangle/ItaniumDemangle.h --- a/llvm/include/llvm/Demangle/ItaniumDemangle.h +++ b/llvm/include/llvm/Demangle/ItaniumDemangle.h @@ -55,13 +55,13 @@ if (isInline()) { auto *Tmp = static_cast(std::malloc(NewCap * sizeof(T))); if (Tmp == nullptr) - std::terminate(); + std::abort(); std::copy(First, Last, Tmp); First = Tmp; } else { First = static_cast(std::realloc(First, NewCap * sizeof(T))); if (First == nullptr) - std::terminate(); + std::abort(); } Last = First + S; Cap = First + NewCap; diff --git a/llvm/include/llvm/Demangle/README.txt b/llvm/include/llvm/Demangle/README.txt --- a/llvm/include/llvm/Demangle/README.txt +++ b/llvm/include/llvm/Demangle/README.txt @@ -34,7 +34,7 @@ identical between both copies to simplify development and testing. If you're working on the generic library, then do the work first in -libcxxabi, then run the cp-to-llvm.sh script in src/demangle. This +libcxxabi, then run libcxxabi/src/demangle/cp-to-llvm.sh. This script takes as an optional argument the path to llvm, and copies the changes you made to libcxxabi over. Note that this script just blindly overwrites all changes to the generic library in llvm, so be diff --git a/llvm/include/llvm/Demangle/Utility.h b/llvm/include/llvm/Demangle/Utility.h --- a/llvm/include/llvm/Demangle/Utility.h +++ b/llvm/include/llvm/Demangle/Utility.h @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -49,7 +48,7 @@ BufferCapacity = Need; Buffer = static_cast(std::realloc(Buffer, BufferCapacity)); if (Buffer == nullptr) - std::terminate(); + std::abort(); } }