[PATCH] D131337: Wrap `llvm_unreachable` macro in do-while loop

Sergei Barannikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 6 13:39:21 PDT 2022


barannikov88 added inline comments.


================
Comment at: llvm/include/llvm/Support/ErrorHandling.h:150
 #else
-#define llvm_unreachable(msg) LLVM_BUILTIN_TRAP, LLVM_BUILTIN_UNREACHABLE
+#define llvm_unreachable(msg) \
+  do { LLVM_BUILTIN_TRAP; LLVM_BUILTIN_UNREACHABLE; \
----------------
This is improperly formatted, please use clang-format.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131337



More information about the llvm-commits mailing list