From 67780f108ccb509dffe3ff63d3826ea6accb1bb1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 23 Apr 2008 20:25:16 +0000 Subject: [PATCH] Use isa instead of dyn_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50181 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 7e7a2f41193..73617c0dfa0 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(I.getOperand(0))) { + if (isa(I.getOperand(0))) { SDOperand Undef = DAG.getNode(ISD::UNDEF, TLI.getValueType(I.getType())); setValue(&I, Undef); } else { -- 2.34.1