[llvm-commits] llvm-convert.cpp: abort on unhandled expression
Duncan Sands
baldrick at free.fr
Mon Jan 15 07:06:20 PST 2007
Neater than just segfaulting, which in my experience is what happens
a bit later without this.
Index: gcc/llvm-convert.cpp
===================================================================
--- gcc/llvm-convert.cpp (revision 248)
+++ gcc/llvm-convert.cpp (working copy)
@@ -496,7 +496,7 @@
default:
std::cerr << "Unhandled expression!\n";
debug_tree(exp);
- break;
+ abort();
case EH_FILTER_EXPR:
case CATCH_EXPR: {
static bool PrintedWarning = false;
More information about the llvm-commits
mailing list