diff options
author | Louis Dionne <ldionne@apple.com> | 2019-10-02 20:45:06 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-10-02 20:45:06 +0000 |
commit | c5d2746fbea7bd46b0508fbf07cd935c3bb33c3a (patch) | |
tree | 9c4336ce220ec8b651c020022ee781a2f69e729d | |
parent | 5ac9d18e7d9d91a3bfb54bbb65067a5c36f13315 (diff) | |
download | bcm5719-llvm-c5d2746fbea7bd46b0508fbf07cd935c3bb33c3a.tar.gz bcm5719-llvm-c5d2746fbea7bd46b0508fbf07cd935c3bb33c3a.zip |
[NFC][libc++abi] Convert stray tabs to spaces
llvm-svn: 373524
-rw-r--r-- | libcxxabi/src/cxa_default_handlers.cpp | 2 | ||||
-rw-r--r-- | libcxxabi/src/cxa_exception.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/libcxxabi/src/cxa_default_handlers.cpp b/libcxxabi/src/cxa_default_handlers.cpp index 97192bc788f..573694d4ebe 100644 --- a/libcxxabi/src/cxa_default_handlers.cpp +++ b/libcxxabi/src/cxa_default_handlers.cpp @@ -52,7 +52,7 @@ static void demangling_terminate_handler() name = thrown_type->name(); // If the uncaught exception can be caught with std::exception& const __shim_type_info* catch_type = - static_cast<const __shim_type_info*>(&typeid(std::exception)); + static_cast<const __shim_type_info*>(&typeid(std::exception)); if (catch_type->can_catch(thrown_type, thrown_object)) { // Include the what() message from the exception diff --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp index 54bd1dff399..ebb05ce5421 100644 --- a/libcxxabi/src/cxa_exception.cpp +++ b/libcxxabi/src/cxa_exception.cpp @@ -79,8 +79,8 @@ size_t cxa_exception_size_from_exception_thrown_size(size_t size) { } void __setExceptionClass(_Unwind_Exception* unwind_exception, uint64_t newValue) { - ::memcpy(&unwind_exception->exception_class, &newValue, sizeof(newValue)); - } + ::memcpy(&unwind_exception->exception_class, &newValue, sizeof(newValue)); +} static void setOurExceptionClass(_Unwind_Exception* unwind_exception) { @@ -93,13 +93,13 @@ static void setDependentExceptionClass(_Unwind_Exception* unwind_exception) { // Is it one of ours? uint64_t __getExceptionClass(const _Unwind_Exception* unwind_exception) { -// On x86 and some ARM unwinders, unwind_exception->exception_class is -// a uint64_t. On other ARM unwinders, it is a char[8] -// See: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038b/IHI0038B_ehabi.pdf -// So we just copy it into a uint64_t to be sure. - uint64_t exClass; - ::memcpy(&exClass, &unwind_exception->exception_class, sizeof(exClass)); - return exClass; + // On x86 and some ARM unwinders, unwind_exception->exception_class is + // a uint64_t. On other ARM unwinders, it is a char[8]. + // See: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038b/IHI0038B_ehabi.pdf + // So we just copy it into a uint64_t to be sure. + uint64_t exClass; + ::memcpy(&exClass, &unwind_exception->exception_class, sizeof(exClass)); + return exClass; } bool __isOurExceptionClass(const _Unwind_Exception* unwind_exception) { |