diff options
-rw-r--r-- | llvm/lib/IR/SafepointIRVerifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/SafepointIRVerifier.cpp b/llvm/lib/IR/SafepointIRVerifier.cpp index 7f3dea5e6a6..c90347ec48f 100644 --- a/llvm/lib/IR/SafepointIRVerifier.cpp +++ b/llvm/lib/IR/SafepointIRVerifier.cpp @@ -102,11 +102,11 @@ public: } bool isDeadEdge(const Use *U) const { - assert(dyn_cast<Instruction>(U->getUser())->isTerminator() && + assert(cast<Instruction>(U->getUser())->isTerminator() && "edge must be operand of terminator"); assert(cast_or_null<BasicBlock>(U->get()) && "edge must refer to basic block"); - assert(!isDeadBlock(dyn_cast<Instruction>(U->getUser())->getParent()) && + assert(!isDeadBlock(cast<Instruction>(U->getUser())->getParent()) && "isDeadEdge() must be applied to edge from live block"); return DeadEdges.count(U); } |