Fix the condition in this assertion, and also make it into an unreachable.
authorAdrian Prantl <aprantl@apple.com>
Thu, 22 Jan 2015 17:52:08 +0000 (17:52 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 22 Jan 2015 17:52:08 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226843 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/DebugInfo.h

index 4a80359f721490b29385abbb00e70737d47dd277..b2fc6fa95d4f6e7b03f3d029747a4df5958789cd 100644 (file)
@@ -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");
       }
     }
   };