From d4255baedecbcf2fd95bff327fe761b656fdc1ca Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 22 Jan 2015 17:52:08 +0000 Subject: [PATCH] Fix the condition in this assertion, and also make it into an unreachable. llvm-svn: 226843 --- llvm/include/llvm/IR/DebugInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/DebugInfo.h b/llvm/include/llvm/IR/DebugInfo.h index 4a80359..b2fc6fa 100644 --- a/llvm/include/llvm/IR/DebugInfo.h +++ b/llvm/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"); } } }; -- 2.7.4