summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-24 23:02:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-24 23:02:57 +0000
commite8d0539f202c9f35a98193fcbd7917f683fd8e08 (patch)
tree6e498a6b7d38b84deee54f6794613b5b21f6a945
parent6b01b4f5a66bcd163f2d42edc9c39d1d6d4586b5 (diff)
downloadbcm5719-llvm-e8d0539f202c9f35a98193fcbd7917f683fd8e08.tar.gz
bcm5719-llvm-e8d0539f202c9f35a98193fcbd7917f683fd8e08.zip
InferAddressSpaces: Remove redundant assert
This is just asserting all the operations are handled in the switch, which the unreachable already handles. llvm-svn: 301270
-rw-r--r--llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
index f0a812b1aab..76897c5f68f 100644
--- a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
+++ b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
@@ -204,7 +204,6 @@ static bool isAddressExpression(const Value &V) {
//
// Precondition: V is an address expression.
static SmallVector<Value *, 2> getPointerOperands(const Value &V) {
- assert(isAddressExpression(V));
const Operator &Op = cast<Operator>(V);
switch (Op.getOpcode()) {
case Instruction::PHI: {
OpenPOWER on IntegriCloud