mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
Remove unnecessary cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ccdd10b1a
commit
9dddf97480
@ -381,8 +381,7 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB,
|
|||||||
if (MDDbgKind) {
|
if (MDDbgKind) {
|
||||||
// Update DebugLoc if debug information is attached with this
|
// Update DebugLoc if debug information is attached with this
|
||||||
// instruction.
|
// instruction.
|
||||||
if (MDNode *Dbg =
|
if (MDNode *Dbg = TheMetadata.getMD(MDDbgKind, I)) {
|
||||||
dyn_cast_or_null<MDNode>(TheMetadata.getMD(MDDbgKind, I))) {
|
|
||||||
DILocation DILoc(Dbg);
|
DILocation DILoc(Dbg);
|
||||||
DebugLoc Loc = ExtractDebugLocation(DILoc, MF->getDebugLocInfo());
|
DebugLoc Loc = ExtractDebugLocation(DILoc, MF->getDebugLocInfo());
|
||||||
SDL->setCurDebugLoc(Loc);
|
SDL->setCurDebugLoc(Loc);
|
||||||
@ -743,8 +742,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
|
|||||||
if (MDDbgKind) {
|
if (MDDbgKind) {
|
||||||
// Update DebugLoc if debug information is attached with this
|
// Update DebugLoc if debug information is attached with this
|
||||||
// instruction.
|
// instruction.
|
||||||
if (MDNode *Dbg =
|
if (MDNode *Dbg = TheMetadata.getMD(MDDbgKind, BI)) {
|
||||||
dyn_cast_or_null<MDNode>(TheMetadata.getMD(MDDbgKind, BI))) {
|
|
||||||
DILocation DILoc(Dbg);
|
DILocation DILoc(Dbg);
|
||||||
DebugLoc Loc = ExtractDebugLocation(DILoc,
|
DebugLoc Loc = ExtractDebugLocation(DILoc,
|
||||||
MF.getDebugLocInfo());
|
MF.getDebugLocInfo());
|
||||||
|
Loading…
Reference in New Issue
Block a user