Skip to content

Commit c5d2746

Browse files
committed
[NFC][libc++abi] Convert stray tabs to spaces
llvm-svn: 373524
1 parent 5ac9d18 commit c5d2746

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

libcxxabi/src/cxa_default_handlers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void demangling_terminate_handler()
5252
name = thrown_type->name();
5353
// If the uncaught exception can be caught with std::exception&
5454
const __shim_type_info* catch_type =
55-
static_cast<const __shim_type_info*>(&typeid(std::exception));
55+
static_cast<const __shim_type_info*>(&typeid(std::exception));
5656
if (catch_type->can_catch(thrown_type, thrown_object))
5757
{
5858
// Include the what() message from the exception

libcxxabi/src/cxa_exception.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ size_t cxa_exception_size_from_exception_thrown_size(size_t size) {
7979
}
8080

8181
void __setExceptionClass(_Unwind_Exception* unwind_exception, uint64_t newValue) {
82-
::memcpy(&unwind_exception->exception_class, &newValue, sizeof(newValue));
83-
}
82+
::memcpy(&unwind_exception->exception_class, &newValue, sizeof(newValue));
83+
}
8484

8585

8686
static void setOurExceptionClass(_Unwind_Exception* unwind_exception) {
@@ -93,13 +93,13 @@ static void setDependentExceptionClass(_Unwind_Exception* unwind_exception) {
9393

9494
// Is it one of ours?
9595
uint64_t __getExceptionClass(const _Unwind_Exception* unwind_exception) {
96-
// On x86 and some ARM unwinders, unwind_exception->exception_class is
97-
// a uint64_t. On other ARM unwinders, it is a char[8]
98-
// See: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038b/IHI0038B_ehabi.pdf
99-
// So we just copy it into a uint64_t to be sure.
100-
uint64_t exClass;
101-
::memcpy(&exClass, &unwind_exception->exception_class, sizeof(exClass));
102-
return exClass;
96+
// On x86 and some ARM unwinders, unwind_exception->exception_class is
97+
// a uint64_t. On other ARM unwinders, it is a char[8].
98+
// See: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038b/IHI0038B_ehabi.pdf
99+
// So we just copy it into a uint64_t to be sure.
100+
uint64_t exClass;
101+
::memcpy(&exClass, &unwind_exception->exception_class, sizeof(exClass));
102+
return exClass;
103103
}
104104

105105
bool __isOurExceptionClass(const _Unwind_Exception* unwind_exception) {

0 commit comments

Comments
 (0)