diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-29 19:56:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-29 19:56:13 +0000 |
commit | 5d58383ea93af0adfb9bb0fe258e394be3ae5e96 (patch) | |
tree | 5fa36d2d5e1877300362e85d9901d2ab52189844 | |
parent | 419e38bbe2234c65ad2d3381af3e65cda29b991e (diff) | |
download | bcm5719-llvm-5d58383ea93af0adfb9bb0fe258e394be3ae5e96.tar.gz bcm5719-llvm-5d58383ea93af0adfb9bb0fe258e394be3ae5e96.zip |
Remove unnecessary cast.
llvm-svn: 83100
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1b28bbd1976..8591da7621a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -381,8 +381,7 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, if (MDDbgKind) { // Update DebugLoc if debug information is attached with this // instruction. - if (MDNode *Dbg = - dyn_cast_or_null<MDNode>(TheMetadata.getMD(MDDbgKind, I))) { + if (MDNode *Dbg = TheMetadata.getMD(MDDbgKind, I)) { DILocation DILoc(Dbg); DebugLoc Loc = ExtractDebugLocation(DILoc, MF->getDebugLocInfo()); SDL->setCurDebugLoc(Loc); @@ -743,8 +742,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, if (MDDbgKind) { // Update DebugLoc if debug information is attached with this // instruction. - if (MDNode *Dbg = - dyn_cast_or_null<MDNode>(TheMetadata.getMD(MDDbgKind, BI))) { + if (MDNode *Dbg = TheMetadata.getMD(MDDbgKind, BI)) { DILocation DILoc(Dbg); DebugLoc Loc = ExtractDebugLocation(DILoc, MF.getDebugLocInfo()); |