From 5196540da12cc87f180d3fff46c72121720624d5 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226843 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/DebugInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } } }; -- 2.34.1