[llvm] r226843 - Fix the condition in this assertion, and also make it into an unreachable.
Adrian Prantl
aprantl at apple.com
Thu Jan 22 09:52:08 PST 2015
Author: adrian
Date: Thu Jan 22 11:52:08 2015
New Revision: 226843
URL: http://llvm.org/viewvc/llvm-project?rev=226843&view=rev
Log:
Fix the condition in this assertion, and also make it into an unreachable.
Modified:
llvm/trunk/include/llvm/IR/DebugInfo.h
Modified: llvm/trunk/include/llvm/IR/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugInfo.h?rev=226843&r1=226842&r2=226843&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DebugInfo.h Thu Jan 22 11:52:08 2015
@@ -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");
}
}
};
More information about the llvm-commits
mailing list