aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-23 20:25:16 +0000
committerDan Gohman <gohman@apple.com>2008-04-23 20:25:16 +0000
commit67780f108ccb509dffe3ff63d3826ea6accb1bb1 (patch)
tree1e59408e7f857c3f96adfd7c0668b545786c1a5f /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent3dc34f682dfdfbf75c2b883e21a953d41df4f3a0 (diff)
Use isa instead of dyn_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7e7a2f4119..73617c0dfa 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -3311,7 +3311,7 @@ void SelectionDAGLowering::visitCall(CallInst &I) {
void SelectionDAGLowering::visitGetResult(GetResultInst &I) {
- if (UndefValue *UV = dyn_cast<UndefValue>(I.getOperand(0))) {
+ if (isa<UndefValue>(I.getOperand(0))) {
SDOperand Undef = DAG.getNode(ISD::UNDEF, TLI.getValueType(I.getType()));
setValue(&I, Undef);
} else {