[PATCH] D83628: [examples] fix ExceptionDemo

Stephen Neuendorffer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 11 12:39:51 PDT 2020


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd8c35031a39e: [examples] fix ExceptionDemo (authored by stephenneuendorffer).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83628/new/

https://reviews.llvm.org/D83628

Files:
  llvm/examples/ExceptionDemo/ExceptionDemo.cpp


Index: llvm/examples/ExceptionDemo/ExceptionDemo.cpp
===================================================================
--- llvm/examples/ExceptionDemo/ExceptionDemo.cpp
+++ llvm/examples/ExceptionDemo/ExceptionDemo.cpp
@@ -792,7 +792,7 @@
   }
 #endif
 
-  const uint8_t *lsda = _Unwind_GetLanguageSpecificData(context);
+  const uint8_t *lsda = (const uint8_t *)_Unwind_GetLanguageSpecificData(context);
 
 #ifdef DEBUG
   fprintf(stderr,
@@ -1959,11 +1959,13 @@
 
     executionEngine->finalizeObject();
 
+#ifndef NDEBUG
     fprintf(stderr, "\nBegin module dump:\n\n");
 
     module->dump();
 
     fprintf(stderr, "\nEnd module dump:\n");
+#endif
 
     fprintf(stderr, "\n\nBegin Test:\n");
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83628.277256.patch
Type: text/x-patch
Size: 702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200711/07f67efd/attachment.bin>


More information about the llvm-commits mailing list