diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp')
-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: |