From: Matt Arsenault Date: Mon, 24 Apr 2017 23:02:57 +0000 (+0000) Subject: InferAddressSpaces: Remove redundant assert X-Git-Tag: llvmorg-5.0.0-rc1~6782 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8d0539f202c9f35a98193fcbd7917f683fd8e08;p=platform%2Fupstream%2Fllvm.git InferAddressSpaces: Remove redundant assert This is just asserting all the operations are handled in the switch, which the unreachable already handles. llvm-svn: 301270 --- diff --git a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp index f0a812b..76897c5 100644 --- a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp +++ b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp @@ -204,7 +204,6 @@ static bool isAddressExpression(const Value &V) { // // Precondition: V is an address expression. static SmallVector getPointerOperands(const Value &V) { - assert(isAddressExpression(V)); const Operator &Op = cast(V); switch (Op.getOpcode()) { case Instruction::PHI: {