summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-27 00:16:18 +0000
committerChris Lattner <sabre@nondot.org>2008-04-27 00:16:18 +0000
commita937baeb9b192266efa58f410cc8d8051c17d598 (patch)
tree6c78b6bcb278eefe0f9583b400c58f5457109a7a /llvm/lib/CodeGen/SelectionDAG
parent4793515a9ce9d799741346e4408015b1ab4d0879 (diff)
downloadbcm5719-llvm-a937baeb9b192266efa58f410cc8d8051c17d598.tar.gz
bcm5719-llvm-a937baeb9b192266efa58f410cc8d8051c17d598.zip
isa+cast -> dyn_cast
llvm-svn: 50314
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 888d4605bd5..7e8b61465ad 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud