[llvm-commits] [llvm] r50181 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Dan Gohman
gohman at apple.com
Wed Apr 23 13:25:16 PDT 2008
Author: djg
Date: Wed Apr 23 15:25:16 2008
New Revision: 50181
URL: http://llvm.org/viewvc/llvm-project?rev=50181&view=rev
Log:
Use isa instead of dyn_cast.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=50181&r1=50180&r2=50181&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Apr 23 15:25:16 2008
@@ -3311,7 +3311,7 @@
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 {
More information about the llvm-commits
mailing list