aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r--llvm/lib/IR/Value.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index d54a95c..544f4d6 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -205,8 +205,7 @@ void Value::dropDroppableUsesIn(User &Usr) {
void Value::dropDroppableUse(Use &U) {
U.removeFromList();
- if (auto *Assume = dyn_cast<IntrinsicInst>(U.getUser())) {
- assert(Assume->getIntrinsicID() == Intrinsic::assume);
+ if (auto *Assume = dyn_cast<AssumeInst>(U.getUser())) {
unsigned OpNo = U.getOperandNo();
if (OpNo == 0)
U.set(ConstantInt::getTrue(Assume->getContext()));