[llvm-commits] [dragonegg] r150175 - /dragonegg/trunk/include/dragonegg/Internals.h
Duncan Sands
baldrick at free.fr
Thu Feb 9 06:30:58 PST 2012
Author: baldrick
Date: Thu Feb 9 08:30:58 2012
New Revision: 150175
URL: http://llvm.org/viewvc/llvm-project?rev=150175&view=rev
Log:
Flip the order so compilers won't report the cast to void as unreachable.
Modified:
dragonegg/trunk/include/dragonegg/Internals.h
Modified: dragonegg/trunk/include/dragonegg/Internals.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/include/dragonegg/Internals.h?rev=150175&r1=150174&r2=150175&view=diff
==============================================================================
--- dragonegg/trunk/include/dragonegg/Internals.h (original)
+++ dragonegg/trunk/include/dragonegg/Internals.h Thu Feb 9 08:30:58 2012
@@ -109,8 +109,8 @@
/// DieAbjectly - An unrecoverable fatal error occurred - throw in the towel,
/// give up the ghost, quit miserably.
inline void LLVM_ATTRIBUTE_NORETURN DieAbjectly(const char *Message) {
- llvm_unreachable(Message);
(void)Message; // Avoid unused variable warning when assertions are disabled.
+ llvm_unreachable(Message);
}
inline void LLVM_ATTRIBUTE_NORETURN DieAbjectly(const char *Message,
union gimple_statement_d *stmt){
More information about the llvm-commits
mailing list