]> granicus.if.org Git - llvm/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301270 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InferAddressSpaces.cpp

index f0a812b1aabaa0fc219f43685097e41ee1af770a..76897c5f68f513ac81c35b1bda941c55d7565c38 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: {