Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/src/cxa_exception.hpp')
-rw-r--r--libcxxabi/src/cxa_exception.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcxxabi/src/cxa_exception.hpp b/libcxxabi/src/cxa_exception.hpp
index 592dd501d4a8..9b22ce3719ec 100644
--- a/libcxxabi/src/cxa_exception.hpp
+++ b/libcxxabi/src/cxa_exception.hpp
@@ -67,9 +67,10 @@ struct __cxa_exception {
};
// http://sourcery.mentor.com/archives/cxx-abi-dev/msg01924.html
-
+// The layout of this structure MUST match the layout of __cxa_exception, with
+// primaryException instead of referenceCount.
struct __cxa_dependent_exception {
-#if __LP64__
+#if __LP64__ || LIBCXXABI_ARM_EHABI
void* primaryException;
#endif
@@ -93,7 +94,7 @@ struct __cxa_dependent_exception {
void *adjustedPtr;
#endif
-#if !__LP64__
+#if !__LP64__ && !LIBCXXABI_ARM_EHABI
void* primaryException;
#endif