IR: Give 'DI' prefix to debug info metadata
[oota-llvm.git] / lib / CodeGen / InlineSpiller.cpp
index c7e7e58f397b24185d2d15a76bfe3842fcb7d341..59a92890f5a686d2945dfa522b6d081e71099131 100644 (file)
@@ -1232,7 +1232,7 @@ void InlineSpiller::spillAroundUses(unsigned Reg) {
       DebugLoc DL = MI->getDebugLoc();
       DEBUG(dbgs() << "Modifying debug info due to spill:" << "\t" << *MI);
       MachineBasicBlock *MBB = MI->getParent();
-      assert(cast<MDLocalVariable>(Var)->isValidLocationForIntrinsic(DL) &&
+      assert(cast<DILocalVariable>(Var)->isValidLocationForIntrinsic(DL) &&
              "Expected inlined-at fields to agree");
       BuildMI(*MBB, MBB->erase(MI), DL, TII.get(TargetOpcode::DBG_VALUE))
           .addFrameIndex(StackSlot)