1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

InferAddressSpaces: Remove redundant assert

This is just asserting all the operations are handled in the
switch, which the unreachable already handles.

llvm-svn: 301270
This commit is contained in:
Matt Arsenault 2017-04-24 23:02:57 +00:00
parent 61cee25d5f
commit 9a8d6b35cf

View File

@ -204,7 +204,6 @@ static bool isAddressExpression(const Value &V) {
//
// Precondition: V is an address expression.
static SmallVector<Value *, 2> getPointerOperands(const Value &V) {
assert(isAddressExpression(V));
const Operator &Op = cast<Operator>(V);
switch (Op.getOpcode()) {
case Instruction::PHI: {