[InferAddressSpaces] Fix fallthrough error

llvm-svn: 354580
This commit is contained in:
Joey Gouly 2019-02-21 13:10:37 +00:00
parent dcaa939ab7
commit fdf651ee8d
1 changed files with 1 additions and 0 deletions

View 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: