From: Adrian Prantl Date: Thu, 22 Jan 2015 17:52:08 +0000 (+0000) Subject: Fix the condition in this assertion, and also make it into an unreachable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5196540da12cc87f180d3fff46c72121720624d5;p=oota-llvm.git Fix the condition in this assertion, and also make it into an unreachable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226843 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/DebugInfo.h b/include/llvm/IR/DebugInfo.h index 4a80359f721..b2fc6fa95d4 100644 --- a/include/llvm/IR/DebugInfo.h +++ b/include/llvm/IR/DebugInfo.h @@ -904,7 +904,7 @@ public: case dwarf::DW_OP_plus: std::advance(I, 2); break; case dwarf::DW_OP_deref: std::advance(I, 1); break; default: - assert("unsupported operand"); + llvm_unreachable("unsupported operand"); } } };