mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
Remove unnecessary cast.
llvm-svn: 83100
This commit is contained in:
parent
e5be8e79df
commit
5dcd8e1d86
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user