From 507ffd2423cfd0f5204c69e44c50aa3c759609d8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Apr 2008 00:16:18 +0000 Subject: [PATCH] isa+cast -> dyn_cast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50314 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 888d4605bd5..7e8b61465ad 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -3789,10 +3789,8 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) { // If this is an input or an indirect output, process the call argument. // BasicBlocks are labels, currently appearing only in asm's. if (OpInfo.CallOperandVal) { - if (isa(OpInfo.CallOperandVal)) - OpInfo.CallOperand = - DAG.getBasicBlock(FuncInfo.MBBMap[cast( - OpInfo.CallOperandVal)]); + if (BasicBlock *BB = dyn_cast(OpInfo.CallOperandVal)) + OpInfo.CallOperand = DAG.getBasicBlock(FuncInfo.MBBMap[BB]); else { OpInfo.CallOperand = getValue(OpInfo.CallOperandVal); const Type *OpTy = OpInfo.CallOperandVal->getType();