diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:51:42 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:51:42 +0000 |
commit | 1d5ae1026e831016fc29fd927877c86af904481f (patch) | |
tree | 2cdfd12620fcfa5d9e4a0389f85368e8e36f63f9 /lib/IR/SafepointIRVerifier.cpp | |
parent | e6d1592492a3a379186bfb02bd0f4eda0669c0d5 (diff) |
Notes
Diffstat (limited to 'lib/IR/SafepointIRVerifier.cpp')
-rw-r--r-- | lib/IR/SafepointIRVerifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/SafepointIRVerifier.cpp b/lib/IR/SafepointIRVerifier.cpp index 7f3dea5e6a6d2..c90347ec48fdc 100644 --- a/lib/IR/SafepointIRVerifier.cpp +++ b/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); } |