From: Matt Arsenault Date: Mon, 24 Apr 2017 23:02:57 +0000 (+0000) Subject: InferAddressSpaces: Remove redundant assert X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6991d24a159ef2cb1f9dfbb1f51d62be9a5e40b;p=llvm InferAddressSpaces: Remove redundant assert This is just asserting all the operations are handled in the switch, which the unreachable already handles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301270 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InferAddressSpaces.cpp b/lib/Transforms/Scalar/InferAddressSpaces.cpp index f0a812b1aab..76897c5f68f 100644 --- a/lib/Transforms/Scalar/InferAddressSpaces.cpp +++ b/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: {