[PATCH] D83628: [examples] fix ExceptionDemo
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 11 12:38:28 PDT 2020
stephenneuendorffer created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Code didn't compile in a release build. Guard debug output with
ifndef NDEBUG.
Repository:
rG LLVM Github Monorepo
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.277255.patch
Type: text/x-patch
Size: 702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200711/59b0f111/attachment.bin>
More information about the llvm-commits
mailing list