summaryrefslogtreecommitdiffstats
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
commite9e3891c094b2fb39395492865ac5658370acaeb (patch)
treee2210b58637746407c1adca81b2fc3ffbe757f13
parentb418aafabf6a3199133346fd56379c776c4ea743 (diff)
downloadbcm5719-llvm-e9e3891c094b2fb39395492865ac5658370acaeb.tar.gz
bcm5719-llvm-e9e3891c094b2fb39395492865ac5658370acaeb.zip
Use isa instead of dyn_cast.
llvm-svn: 50181
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7e7a2f41193..73617c0dfa0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud