aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-07-01 21:02:01 +0000
committerManman Ren <mren@apple.com>2013-07-01 21:02:01 +0000
commit89c83b76329ad8eb383a72f14e03dd13b5d780b7 (patch)
treee7ec5c4db02dc897ad6c318838e91d4b1882f399 /lib/Transforms
parentc38c1d135cb9d617254c396c22949baca024dd35 (diff)
downloadexternal_llvm-89c83b76329ad8eb383a72f14e03dd13b5d780b7.zip
external_llvm-89c83b76329ad8eb383a72f14e03dd13b5d780b7.tar.gz
external_llvm-89c83b76329ad8eb383a72f14e03dd13b5d780b7.tar.bz2
Debug Info: clean up usage of Verify.
No functionality change. It should suffice to check the type of a debug info metadata, instead of calling Verify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Instrumentation/DebugIR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/DebugIR.cpp b/lib/Transforms/Instrumentation/DebugIR.cpp
index 0c85496..7bc4da7 100644
--- a/lib/Transforms/Instrumentation/DebugIR.cpp
+++ b/lib/Transforms/Instrumentation/DebugIR.cpp
@@ -219,7 +219,7 @@ public:
MDNode *Sub = Builder.createFunction(
DICompileUnit(CUNode), F.getName(), MangledName, DIFile(FileNode), Line,
Sig, Local, IsDefinition, ScopeLine, FuncFlags, IsOptimized, &F);
- assert(DISubprogram(Sub).Verify());
+ assert(DISubprogram(Sub).isSubprogram());
DEBUG(dbgs() << "create subprogram mdnode " << Sub << ": "
<< "\n");