From 88328d2ff47670314a1007a4c81c42adf026ee9f Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Tue, 2 Jul 2013 18:37:35 +0000 Subject: Debug Info: cleanup git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185456 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/DebugIR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Transforms/Instrumentation/DebugIR.cpp') diff --git a/lib/Transforms/Instrumentation/DebugIR.cpp b/lib/Transforms/Instrumentation/DebugIR.cpp index 7bc4da7a8f..f4109eff4f 100644 --- a/lib/Transforms/Instrumentation/DebugIR.cpp +++ b/lib/Transforms/Instrumentation/DebugIR.cpp @@ -216,10 +216,10 @@ public: int FuncFlags = llvm::DIDescriptor::FlagPrototyped; assert(CUNode && FileNode); - MDNode *Sub = Builder.createFunction( + DISubprogram Sub = Builder.createFunction( DICompileUnit(CUNode), F.getName(), MangledName, DIFile(FileNode), Line, Sig, Local, IsDefinition, ScopeLine, FuncFlags, IsOptimized, &F); - assert(DISubprogram(Sub).isSubprogram()); + assert(Sub.isSubprogram()); DEBUG(dbgs() << "create subprogram mdnode " << Sub << ": " << "\n"); -- cgit v1.2.3