summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-23 20:24:29 +0000
committerDan Gohman <gohman@apple.com>2007-07-23 20:24:29 +0000
commitb6a8ae20c75c8b8f086d58346dfa96c7d7f94151 (patch)
tree234f518eba655f284aeef99f5323f2c6ab32ca32 /llvm/lib/CodeGen
parent17f68f95d8fcd6226c5350a17c645de58a5840eb (diff)
downloadbcm5719-llvm-b6a8ae20c75c8b8f086d58346dfa96c7d7f94151.tar.gz
bcm5719-llvm-b6a8ae20c75c8b8f086d58346dfa96c7d7f94151.zip
Fix some uses of dyn_cast to be uses of cast.
llvm-svn: 40443
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp2
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 257a776d2f1..e157e58bd4c 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -1546,7 +1546,7 @@ private:
break;
}
- FromTy = dyn_cast<DerivedTypeDesc>(FromTy)->getFromType();
+ FromTy = cast<DerivedTypeDesc>(FromTy)->getFromType();
}
// Unless we have a bit field.
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 4b768c23540..9b146eef629 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3210,7 +3210,7 @@ HandleSDNode::~HandleSDNode() {
GlobalAddressSDNode::GlobalAddressSDNode(bool isTarget, const GlobalValue *GA,
MVT::ValueType VT, int o)
: SDNode(isa<GlobalVariable>(GA) &&
- dyn_cast<GlobalVariable>(GA)->isThreadLocal() ?
+ cast<GlobalVariable>(GA)->isThreadLocal() ?
// Thread Local
(isTarget ? ISD::TargetGlobalTLSAddress : ISD::GlobalTLSAddress) :
// Non Thread Local
OpenPOWER on IntegriCloud