remove a bunch of unneeded functions.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / FastISel.cpp
index 714345db2c4d8482133a91b6daeeefaa5d5684cc..33694f283e7503d88c7a25cf24e396f4003ce114 100644 (file)
@@ -333,7 +333,7 @@ bool FastISel::SelectCall(User *I) {
     return true;
   case Intrinsic::dbg_declare: {
     DbgDeclareInst *DI = cast<DbgDeclareInst>(I);
-    if (!isValidDebugInfoIntrinsic(*DI, CodeGenOpt::None) || !DW
+    if (!DIDescriptor::ValidDebugInfo(DI->getVariable(), CodeGenOpt::None)||!DW
         || !DW->ShouldEmitDwarfDebug())
       return true;