summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/ObjCARC/PtrState.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/ObjCARC/PtrState.cpp b/llvm/lib/Transforms/ObjCARC/PtrState.cpp
index 521158c8691..1fcd127931d 100644
--- a/llvm/lib/Transforms/ObjCARC/PtrState.cpp
+++ b/llvm/lib/Transforms/ObjCARC/PtrState.cpp
@@ -206,6 +206,7 @@ bool BottomUpPtrState::MatchWithRetain() {
case S_Retain:
llvm_unreachable("bottom-up pointer in retain state!");
}
+ llvm_unreachable("Sequence unknown enum value");
}
bool BottomUpPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
@@ -233,6 +234,7 @@ bool BottomUpPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
case S_Retain:
llvm_unreachable("bottom-up pointer in retain state!");
}
+ llvm_unreachable("Sequence unknown enum value");
}
void BottomUpPtrState::HandlePotentialUse(BasicBlock *BB, Instruction *Inst,
@@ -336,6 +338,7 @@ bool TopDownPtrState::MatchWithRelease(ARCMDKindCache &Cache,
case S_MovableRelease:
llvm_unreachable("top-down pointer in bottom up state!");
}
+ llvm_unreachable("Sequence unknown enum value");
}
bool TopDownPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
OpenPOWER on IntegriCloud