Correct data types in the _Unwind_FunctionContext struct
authorMartin Storsjo <martin@martin.st>
Tue, 26 Sep 2017 08:07:17 +0000 (08:07 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 26 Sep 2017 08:07:17 +0000 (08:07 +0000)
This makes it match the definition used within llvm and in libgcc,
we previously got the wrong layout in 64 bit environments.

Differential Revision: https://reviews.llvm.org/D38247

llvm-svn: 314196

libunwind/src/Unwind-sjlj.c

index f01e652..c5605d4 100644 (file)
@@ -39,10 +39,10 @@ struct _Unwind_FunctionContext {
   struct _Unwind_FunctionContext *prev;
 
   // set by calling function before registering to be the landing pad
-  uintptr_t                       resumeLocation;
+  uint32_t                        resumeLocation;
 
   // set by personality handler to be parameters passed to landing pad function
-  uintptr_t                       resumeParameters[4];
+  uint32_t                        resumeParameters[4];
 
   // set by calling function before registering
   __personality_routine           personality; // arm offset=24