InferAddressSpaces: Remove redundant assert
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Apr 2017 23:02:57 +0000 (23:02 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Apr 2017 23:02:57 +0000 (23:02 +0000)
This is just asserting all the operations are handled in the
switch, which the unreachable already handles.

llvm-svn: 301270

llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp

index f0a812b..76897c5 100644 (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: {