diff options
author | Joey Gouly <joey.gouly@gmail.com> | 2019-02-21 13:10:37 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@gmail.com> | 2019-02-21 13:10:37 +0000 |
commit | fdf651ee8d0b233bdeaf35b07033c1338b54fb39 (patch) | |
tree | ef5c9d5e41954fb4ef4d08b288a7a4abb4355e69 | |
parent | dcaa939ab75eadf0bea3753046b206288e94a7e9 (diff) | |
download | bcm5719-llvm-fdf651ee8d0b233bdeaf35b07033c1338b54fb39.tar.gz bcm5719-llvm-fdf651ee8d0b233bdeaf35b07033c1338b54fb39.zip |
[InferAddressSpaces] Fix fallthrough error
llvm-svn: 354580
-rw-r--r-- | llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp index 8f5ddf7f9f9..1501b4888b1 100644 --- a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp +++ b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp @@ -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: |