fix compilation of ExceptionTracer on ARM
Summary:
On ARM gcc, the unwind header defines exception_class as a char[8] rather
than a uint64_t. Consequently compilation of exception_tracer fails on ARM
with the following error:
.../folly/experimental/exception_tracer/ExceptionTracer.cpp: In function 'bool folly::exception_tracer::{anonymous}::isAbiCppException(const __cxxabiv1::__cxa_exception*)':
.../folly/experimental/exception_tracer/ExceptionTracer.cpp:107:45: error: invalid operands of types 'const char [8]' and 'unsigned int' to binary 'operator&'
return (exc->unwindHeader.exception_class & 0xffffffff) == cppClass;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
Construct a uint64_t for this platform.
Reviewed By: yfeldblum
Differential Revision: D13763587
fbshipit-source-id: 011cf13cdfcd1fffdeab8c384f7274f20faecbe5
Showing
Please register or sign in to comment