[InferAddressSpaces] Fix fallthrough error
authorJoey Gouly <joey.gouly@gmail.com>
Thu, 21 Feb 2019 13:10:37 +0000 (13:10 +0000)
committerJoey Gouly <joey.gouly@gmail.com>
Thu, 21 Feb 2019 13:10:37 +0000 (13:10 +0000)
llvm-svn: 354580

llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp

index 8f5ddf7..1501b48 100644 (file)
@@ -221,6 +221,7 @@ static bool isAddressExpression(const Value &V) {
   switch (Op.getOpcode()) {
   case Instruction::PHI:
     assert(Op.getType()->isPointerTy());
+    return true;
   case Instruction::BitCast:
   case Instruction::AddrSpaceCast:
   case Instruction::GetElementPtr: