[llvm] r354580 - [InferAddressSpaces] Fix fallthrough error
Joey Gouly via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 21 05:10:38 PST 2019
Author: joey
Date: Thu Feb 21 05:10:37 2019
New Revision: 354580
URL: http://llvm.org/viewvc/llvm-project?rev=354580&view=rev
Log:
[InferAddressSpaces] Fix fallthrough error
Modified:
llvm/trunk/lib/Transforms/Scalar/InferAddressSpaces.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InferAddressSpaces.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InferAddressSpaces.cpp?rev=354580&r1=354579&r2=354580&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InferAddressSpaces.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InferAddressSpaces.cpp Thu Feb 21 05:10:37 2019
@@ -221,6 +221,7 @@ static bool isAddressExpression(const Va
switch (Op.getOpcode()) {
case Instruction::PHI:
assert(Op.getType()->isPointerTy());
+ return true;
case Instruction::BitCast:
case Instruction::AddrSpaceCast:
case Instruction::GetElementPtr:
More information about the llvm-commits
mailing list