diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-27 00:16:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-27 00:16:18 +0000 |
commit | 507ffd2423cfd0f5204c69e44c50aa3c759609d8 (patch) | |
tree | 86ec3672bea554351cb8ac67f4b47785cf18ce60 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 4376fea6631d41fff3f2a7c6186faed9eff59619 (diff) |
isa+cast -> dyn_cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 888d4605bd..7e8b61465a 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<BasicBlock>(OpInfo.CallOperandVal)) - OpInfo.CallOperand = - DAG.getBasicBlock(FuncInfo.MBBMap[cast<BasicBlock>( - OpInfo.CallOperandVal)]); + if (BasicBlock *BB = dyn_cast<BasicBlock>(OpInfo.CallOperandVal)) + OpInfo.CallOperand = DAG.getBasicBlock(FuncInfo.MBBMap[BB]); else { OpInfo.CallOperand = getValue(OpInfo.CallOperandVal); const Type *OpTy = OpInfo.CallOperandVal->getType(); |