diff options
author | Daniel Malea <daniel.malea@intel.com> | 2013-07-30 21:26:24 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2013-07-30 21:26:24 +0000 |
commit | 293e35b3f944895603d14d74159d93ab87c0b07d (patch) | |
tree | 587c2a15672b05dcce589feefd25b4cee2981c85 | |
parent | 01711aa1b451159a31d6423ee8919a3a426b4984 (diff) | |
download | lldb-293e35b3f944895603d14d74159d93ab87c0b07d.tar.gz |
Add a default case to the LLVM expression opcode switch statement
- better than failing silently next time the DWARF standard introduces new opcodes!
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187449 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | source/Expression/DWARFExpression.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Expression/DWARFExpression.cpp b/source/Expression/DWARFExpression.cpp index fc955c5cc..7f2f2e1a8 100644 --- a/source/Expression/DWARFExpression.cpp +++ b/source/Expression/DWARFExpression.cpp @@ -11,6 +11,8 @@ #include <vector> +#include "llvm/Support/ErrorHandling.h" + #include "lldb/Core/DataEncoder.h" #include "lldb/Core/dwarf.h" #include "lldb/Core/Log.h" @@ -2659,6 +2661,8 @@ DWARFExpression::Evaluate return false; } break; + default: + llvm::report_fatal_error("Unhandled DWARF expression opcode! Please file a bug at llvm.org/bugs and attach the binary you were debugging."); } } |